[cfe-commits] r38867 - /cfe/cfe/trunk/test/Parser/statements.c

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:25:19 PDT 2007


Author: sabre
Date: Wed Jul 11 11:25:19 2007
New Revision: 38867

URL: http://llvm.org/viewvc/llvm-project?rev=38867&view=rev
Log:
Add sizeof/cast/compound_expr tests.

Modified:
    cfe/cfe/trunk/test/Parser/statements.c

Modified: cfe/cfe/trunk/test/Parser/statements.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Parser/statements.c?rev=38867&r1=38866&r2=38867&view=diff

==============================================================================
--- cfe/cfe/trunk/test/Parser/statements.c (original)
+++ cfe/cfe/trunk/test/Parser/statements.c Wed Jul 11 11:25:19 2007
@@ -46,3 +46,11 @@
 
   if (0);
 }
+
+void test6() {
+  if (sizeof (int){ 1});   // sizeof compound literal
+  if (sizeof (int));       // sizeof type
+
+  (int)4;   // cast.
+  (int){4}; // compound literal.
+}





More information about the cfe-commits mailing list