| 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c99 %s |
|---|---|
| 2 | |
| 3 | int f (int z) |
| 4 | { |
| 5 | if (z > (int) sizeof (enum {a, b})) |
| 6 | return a; |
| 7 | return b; // expected-error{{use of undeclared identifier}} |
| 8 | } |
| 9 |
| 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c99 %s |
|---|---|
| 2 | |
| 3 | int f (int z) |
| 4 | { |
| 5 | if (z > (int) sizeof (enum {a, b})) |
| 6 | return a; |
| 7 | return b; // expected-error{{use of undeclared identifier}} |
| 8 | } |
| 9 |