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