Clang Project

clang_source_code/test/Parser/control-scope.c
1// RUN: %clang_cc1 %s -std=c90 -verify
2// RUN: %clang_cc1 %s -std=c99
3
4int 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}
9