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

Chris Lattner sabre at nondot.org
Thu Nov 13 10:42:48 PST 2008


Author: lattner
Date: Thu Nov 13 12:42:17 2008
New Revision: 59253

URL: http://llvm.org/viewvc/llvm-project?rev=59253&view=rev
Log:
implement a fixme :), switch to -verify mode.

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

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

==============================================================================
--- cfe/trunk/test/Parser/statements.c (original)
+++ cfe/trunk/test/Parser/statements.c Thu Nov 13 12:42:17 2008
@@ -1,4 +1,4 @@
-// RUN: clang -fsyntax-only %s
+// RUN: clang -fsyntax-only -verify %s
 
 int test1() {
   { ; {  ;;}} ;;
@@ -31,19 +31,19 @@
 }
 
 int test4() {
-  if (0);
+  if (0);  // expected-warning {{if statement has empty body}}
   
   int X;  // declaration in a block.
   
-foo:  if (0);
+foo:  if (0); // expected-warning {{if statement has empty body}}
 }
 
 typedef int t;
 void test5() {
-  if (0);
+  if (0);   // expected-warning {{if statement has empty body}}
 
-  //t x = 0;      // FIXME: Enable when handling of typedef names is impl.
+  t x = 0;
 
-  if (0);
+  if (0);  // expected-warning {{if statement has empty body}}
 }
 





More information about the cfe-commits mailing list