Files
clang-p2996/clang/test/Parser/control-scope.c
Chris Lattner 37e54f454a Fix a nasty C99 scope issue that Neil pointed out (for ifs)
This fixes test/Parser/control-scope.c

llvm-svn: 41263
2007-08-22 05:16:28 +00:00

9 lines
154 B
C

// RUN: not clang %s -std=c90
// RUN: clang %s -std=c99
int f (int z) {
if (z + sizeof (enum {a}))
return 1 + sizeof (enum {a});
return 0;
}