control-scope.c 277 B

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