diff options
Diffstat (limited to 'test/ASTMerge/Inputs')
-rw-r--r-- | test/ASTMerge/Inputs/struct1.c | 10 | ||||
-rw-r--r-- | test/ASTMerge/Inputs/struct2.c | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/test/ASTMerge/Inputs/struct1.c b/test/ASTMerge/Inputs/struct1.c index 10c8fce42a..e6d71ac1b4 100644 --- a/test/ASTMerge/Inputs/struct1.c +++ b/test/ASTMerge/Inputs/struct1.c @@ -44,10 +44,14 @@ struct S9 { int i; float f; } *x9; // Incomplete type struct S10 *x10; -// FIXME: Matches, but crashes the importer -#if 0 +// Matches struct ListNode { int value; struct ListNode *Next; } xList; -#endif + +// Mismatch due to struct used internally +struct DeepError { + int value; + struct DeeperError { int i; int f; } *Deeper; +} xDeep; diff --git a/test/ASTMerge/Inputs/struct2.c b/test/ASTMerge/Inputs/struct2.c index 655efd43db..402283137a 100644 --- a/test/ASTMerge/Inputs/struct2.c +++ b/test/ASTMerge/Inputs/struct2.c @@ -46,3 +46,9 @@ struct ListNode { int value; struct ListNode *Next; } xList; + +// Mismatch due to struct used internally +struct DeepError { + int value; + struct DeeperError { int i; float f; } *Deeper; +} xDeep; |