diff --git a/clang/test/Parser/statements.c b/clang/test/Parser/statements.c index deebc4c115d7..b615e02d2a18 100644 --- a/clang/test/Parser/statements.c +++ b/clang/test/Parser/statements.c @@ -46,3 +46,11 @@ void test5() { if (0); } + +void test6() { + if (sizeof (int){ 1}); // sizeof compound literal + if (sizeof (int)); // sizeof type + + (int)4; // cast. + (int){4}; // compound literal. +}