diff options
Diffstat (limited to 'clang/test/Parser/statements.c')
| -rw-r--r-- | clang/test/Parser/statements.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Parser/statements.c b/clang/test/Parser/statements.c index b95c23fb28b..a55b2c23f6c 100644 --- a/clang/test/Parser/statements.c +++ b/clang/test/Parser/statements.c @@ -1,10 +1,10 @@ // RUN: clang-cc -fsyntax-only -verify %s -int test1() { +void test1() { { ; { ;;}} ;; } -int test2() { +void test2() { if (0) { if (1) {} } else { } do { } while (0); @@ -18,7 +18,7 @@ int test2() { for (int X = 0; 0; 0); } -int test3() { +void test3() { switch (0) { case 4: @@ -30,7 +30,7 @@ int test3() { } } -int test4() { +void test4() { if (0); // expected-warning {{if statement has empty body}} int X; // declaration in a block. |

