commit | 2dd1b72bde739d104385bc11a7a0fd72c52aa7ba | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Aug 26 23:08:06 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Aug 26 23:08:06 2007 +0000 |
tree | 5d951b11b43a5143838d2d355568c1d0b84f6b50 | |
parent | c1045b1a699bf119c6d795fce7f611c24de3a643 [diff] [blame] |
Fix test/Parser/if-scope-*.c. Patch by Neil Booth! llvm-svn: 41471
diff --git a/clang/test/Parser/if-scope-c99.c b/clang/test/Parser/if-scope-c99.c new file mode 100644 index 0000000..6547e6f --- /dev/null +++ b/clang/test/Parser/if-scope-c99.c
@@ -0,0 +1,8 @@ +// RUN: clang -parse-ast-check --std=c99 %s + +int f (int z) +{ + if (z > sizeof (enum {a, b})) + return a; + return b; // expected-error{{use of undeclared identifier}} +}