| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
|---|---|
| 2 | |
| 3 | void f5 (int z) { |
| 4 | if (z) |
| 5 | default: // expected-error {{not in switch statement}} |
| 6 | ; |
| 7 | } |
| 8 | |
| 9 |
| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
|---|---|
| 2 | |
| 3 | void f5 (int z) { |
| 4 | if (z) |
| 5 | default: // expected-error {{not in switch statement}} |
| 6 | ; |
| 7 | } |
| 8 | |
| 9 |