brintos

brintos / llvm-project-archived public Read only

0
0
Text · 277 B · 5314980 Raw
9 lines · c
1// RUN: %clang_cc1 %s -std=c90 -verify2// RUN: %clang_cc1 %s -std=c993 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