diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-13 18:42:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-13 18:42:17 +0000 |
commit | a668e8ec3b3c93626147b25be4f5484da809bced (patch) | |
tree | e5e16e60a53dd53d76aaa7d89db387f8d5f347ba | |
parent | 000726887062f0348111fe248fa7cdc9d51690f3 (diff) |
implement a fixme :), switch to -verify mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59253 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Parser/statements.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Parser/statements.c b/test/Parser/statements.c index b3f043eaaa..db2ec628ee 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 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}} } |