]> granicus.if.org Git - clang/commitdiff
implement a fixme :), switch to -verify mode.
authorChris Lattner <sabre@nondot.org>
Thu, 13 Nov 2008 18:42:17 +0000 (18:42 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 13 Nov 2008 18:42:17 +0000 (18:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59253 91177308-0d34-0410-b5e6-96231b3b80d8

test/Parser/statements.c

index b3f043eaaaf7c9aca1accf9d68342d011e5875b8..db2ec628ee9a9ddf68fcc429ed26b2ccaa664153 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -fsyntax-only %s
+// RUN: clang -fsyntax-only -verify %s
 
 int test1() {
   { ; {  ;;}} ;;
@@ -31,19 +31,19 @@ int test3() {
 }
 
 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}}
 }