commit | 9ba479bd2c2c102559c8416d6a08c996c16b6ebc | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Feb 18 21:16:39 2011 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Feb 18 21:16:39 2011 +0000 |
tree | 4bb894fc8f1b6c6422444978caf80b98d5f69be9 | |
parent | d1fd6963f5116816933cf76010ab25d086ba82ce [diff] [blame] |
fix rdar://9024687, a crash on invalid that we used to silently ignore. llvm-svn: 125962
diff --git a/clang/test/Sema/scope-check.c b/clang/test/Sema/scope-check.c index 1a2fc2b..a9494d3 100644 --- a/clang/test/Sema/scope-check.c +++ b/clang/test/Sema/scope-check.c
@@ -229,3 +229,6 @@ vla[0] = 'a'; } } + +// rdar://9024687 +int test16(int [sizeof &&z]); // expected-error {{use of address-of-label extension outside of a function body}}