From: Chris Lattner Date: Thu, 13 Nov 2008 18:42:17 +0000 (+0000) Subject: implement a fixme :), switch to -verify mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a668e8ec3b3c93626147b25be4f5484da809bced;p=clang 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 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}} }