summaryrefslogtreecommitdiff
path: root/test/Import/conflicting-struct/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/conflicting-struct/test.cpp')
-rw-r--r--test/Import/conflicting-struct/test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Import/conflicting-struct/test.cpp b/test/Import/conflicting-struct/test.cpp
new file mode 100644
index 000000000000..5aad567cd794
--- /dev/null
+++ b/test/Import/conflicting-struct/test.cpp
@@ -0,0 +1,7 @@
+// RUN: clang-import-test --import %S/Inputs/S1.cpp --import %S/Inputs/S2.cpp -expression %s
+void expr() {
+ S MyS;
+ T MyT;
+ MyS.a = 3;
+ MyT.u.b = 2;
+}