| 1 |
// RUN: %clang_cc1 %s -std=c90 -verify |
| 2 |
// RUN: %clang_cc1 %s -std=c99 |
| 3 |
|
| 4 |
int f (int z) { |
| 5 |
if (z + sizeof (enum {a})) // expected-note {{previous definition is here}} |
| 6 |
return 1 + sizeof (enum {a}); // expected-error {{redefinition of enumerator 'a'}} |
| 7 |
return 0; |
| 8 |
} |