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:
parent
a2777c2661
commit
f5ed48e3ee
1 changed files with 10 additions and 0 deletions
|
@ -5229,4 +5229,14 @@ public class AST2Tests extends AST2BaseTest {
|
||||||
buf.append(expr.getRawSignature());
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue