From eddbcb2b126a6cc634a8ecf31173ae4ae7de25fa Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 11 Aug 2006 01:38:08 +0000 Subject: [PATCH] Add sizeof/cast/compound_expr tests. llvm-svn: 38867 --- clang/test/Parser/statements.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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. +}