aboutsummaryrefslogtreecommitdiff
path: root/test/ASTMerge/Inputs/struct1.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-11 18:18:11 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-11 18:18:11 +0000
commitb203c9ee39be3170a7d545db057de8ea62959259 (patch)
tree4a87bf96203528fa8534621cc2a13158ab19b2ce /test/ASTMerge/Inputs/struct1.c
parentae24a88655c461e751d0984cc21dda6e17882356 (diff)
Add missing test cases for AST merging of structures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/Inputs/struct1.c')
-rw-r--r--test/ASTMerge/Inputs/struct1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/ASTMerge/Inputs/struct1.c b/test/ASTMerge/Inputs/struct1.c
new file mode 100644
index 0000000000..381f00a0a6
--- /dev/null
+++ b/test/ASTMerge/Inputs/struct1.c
@@ -0,0 +1,16 @@
+typedef int Int;
+typedef float Float;
+
+struct S0 {
+ Int field1;
+ Float field2;
+};
+
+struct S0 x0;
+
+struct S1 {
+ Int field1;
+ int field2;
+};
+
+struct S1 x1;