summaryrefslogtreecommitdiff
path: root/test/ASTMerge/Inputs
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-12 23:44:20 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-12 23:44:20 +0000
commit5ce5dab3c30e4255b8f62b148b6a86f09a444aaa (patch)
treedf7c8b0b9d4c369d49a7afac60259b95ba9b7477 /test/ASTMerge/Inputs
parent974be4d50a95317a85b111855946f5aa4bd15887 (diff)
downloadclang-5ce5dab3c30e4255b8f62b148b6a86f09a444aaa.tar.gz
Funnel changes to the ImportedDecls list in the ASTImporter through a
single Imported function, in preparation for fixing a serious design flaw. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/Inputs')
-rw-r--r--test/ASTMerge/Inputs/struct1.c7
-rw-r--r--test/ASTMerge/Inputs/struct2.c6
2 files changed, 13 insertions, 0 deletions
diff --git a/test/ASTMerge/Inputs/struct1.c b/test/ASTMerge/Inputs/struct1.c
index ff8fa0a04a..10c8fce42a 100644
--- a/test/ASTMerge/Inputs/struct1.c
+++ b/test/ASTMerge/Inputs/struct1.c
@@ -44,3 +44,10 @@ struct S9 { int i; float f; } *x9;
// Incomplete type
struct S10 *x10;
+// FIXME: Matches, but crashes the importer
+#if 0
+struct ListNode {
+ int value;
+ struct ListNode *Next;
+} xList;
+#endif
diff --git a/test/ASTMerge/Inputs/struct2.c b/test/ASTMerge/Inputs/struct2.c
index d865eef895..655efd43db 100644
--- a/test/ASTMerge/Inputs/struct2.c
+++ b/test/ASTMerge/Inputs/struct2.c
@@ -40,3 +40,9 @@ struct S9 *x9;
// Incomplete type
struct S10 *x10;
+
+// Matches
+struct ListNode {
+ int value;
+ struct ListNode *Next;
+} xList;