From 2579105c4e4057b18ac78f5b9fd546e7350f1ec4 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 12 Feb 2010 00:09:27 +0000 Subject: Handle AST merges of incomplete class types. llvm-svn: 95941 --- clang/test/ASTMerge/Inputs/struct1.c | 10 ++++++++++ clang/test/ASTMerge/Inputs/struct2.c | 9 +++++++++ 2 files changed, 19 insertions(+) (limited to 'clang/test/ASTMerge/Inputs') 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; -- cgit v1.2.3