1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

testcase for compound initializer, bug 145387

This commit is contained in:
Markus Schorn 2008-07-08 08:53:31 +00:00
parent a2777c2661
commit f5ed48e3ee

View file

@ -5229,4 +5229,14 @@ public class AST2Tests extends AST2BaseTest {
buf.append(expr.getRawSignature());
}
}
// typedef struct {
// int x;
// } spinlock_t;
// spinlock_t _lock = (spinlock_t) { };
public void testCompoundInitializer_bug145387() throws Exception {
// valid in C99, not in C++.
parseAndCheckBindings(getAboveComment(), ParserLanguage.C, true);
}
}