diff options
Diffstat (limited to 'clang/test/Import/forward-declared-struct')
-rw-r--r-- | clang/test/Import/forward-declared-struct/Inputs/S1.c | 1 | ||||
-rw-r--r-- | clang/test/Import/forward-declared-struct/Inputs/S2.c | 3 | ||||
-rw-r--r-- | clang/test/Import/forward-declared-struct/test.c | 5 |
3 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Import/forward-declared-struct/Inputs/S1.c b/clang/test/Import/forward-declared-struct/Inputs/S1.c new file mode 100644 index 00000000000..28377c2760b --- /dev/null +++ b/clang/test/Import/forward-declared-struct/Inputs/S1.c @@ -0,0 +1 @@ +struct S; diff --git a/clang/test/Import/forward-declared-struct/Inputs/S2.c b/clang/test/Import/forward-declared-struct/Inputs/S2.c new file mode 100644 index 00000000000..b0876d27df4 --- /dev/null +++ b/clang/test/Import/forward-declared-struct/Inputs/S2.c @@ -0,0 +1,3 @@ +struct S { + int a; +}; diff --git a/clang/test/Import/forward-declared-struct/test.c b/clang/test/Import/forward-declared-struct/test.c new file mode 100644 index 00000000000..7ccdcf9e97d --- /dev/null +++ b/clang/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; +} |