implement a fixme :), switch to -verify mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59253 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/statements.c b/test/Parser/statements.c
index b3f043e..db2ec62 100644
--- a/test/Parser/statements.c
+++ b/test/Parser/statements.c
@@ -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}}
}