diff options
Diffstat (limited to 'clang/test/ASTMerge/Inputs')
-rw-r--r-- | clang/test/ASTMerge/Inputs/struct1.c | 10 | ||||
-rw-r--r-- | clang/test/ASTMerge/Inputs/struct2.c | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/Inputs/struct1.c b/clang/test/ASTMerge/Inputs/struct1.c index 5743fe0f487..ff8fa0a04ab 100644 --- a/clang/test/ASTMerge/Inputs/struct1.c +++ b/clang/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/clang/test/ASTMerge/Inputs/struct2.c b/clang/test/ASTMerge/Inputs/struct2.c index a707ed2a5bf..d865eef895d 100644 --- a/clang/test/ASTMerge/Inputs/struct2.c +++ b/clang/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; |