diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-12 00:09:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-12 00:09:27 +0000 |
commit | e72b5dc556805ea4c91f0ae6d8f8404fc341b687 (patch) | |
tree | 6730fc2095f47215cf328045218aa358517aae88 /test/ASTMerge | |
parent | e6bbc01d1c4ec5241df36042e0a4a12a6711934b (diff) |
Handle AST merges of incomplete class types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge')
-rw-r--r-- | test/ASTMerge/Inputs/struct1.c | 10 | ||||
-rw-r--r-- | test/ASTMerge/Inputs/struct2.c | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/ASTMerge/Inputs/struct1.c b/test/ASTMerge/Inputs/struct1.c index 5743fe0f48..ff8fa0a04a 100644 --- a/test/ASTMerge/Inputs/struct1.c +++ b/test/ASTMerge/Inputs/struct1.c @@ -34,3 +34,13 @@ struct S6 { int i : 8; unsigned j : 8; } x6; // Bit-field mismatch struct S7 { int i : 8; unsigned j : 8; } x7; + +// Incomplete type +struct S8 *x8; + +// Incomplete type +struct S9 { int i; float f; } *x9; + +// Incomplete type +struct S10 *x10; + diff --git a/test/ASTMerge/Inputs/struct2.c b/test/ASTMerge/Inputs/struct2.c index a707ed2a5b..d865eef895 100644 --- a/test/ASTMerge/Inputs/struct2.c +++ b/test/ASTMerge/Inputs/struct2.c @@ -31,3 +31,12 @@ struct S6 { int i : 8; unsigned j; } x6; // Bit-field mismatch struct S7 { int i : 8; unsigned j : 16; } x7; + +// Incomplete type +struct S8 { int i; float f; } *x8; + +// Incomplete type +struct S9 *x9; + +// Incomplete type +struct S10 *x10; |