diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2012-02-06 23:29:57 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2012-02-06 23:29:57 +0000 |
| commit | 5f0ca248acbc4a95873862efe3cacfb3a6786623 (patch) | |
| tree | df9fc469159932411e401041c69986314069f508 /clang/test | |
| parent | f93d0b8b2819f7b4fe8b3cadbc3f94be99aa67f7 (diff) | |
| download | bcm5719-llvm-5f0ca248acbc4a95873862efe3cacfb3a6786623.tar.gz bcm5719-llvm-5f0ca248acbc4a95873862efe3cacfb3a6786623.zip | |
Fix a minor regression from my potentially-evaluated expression changes.
llvm-svn: 149930
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/vla.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/vla.c b/clang/test/Sema/vla.c index fd7a6bf3d72..4fd636122f3 100644 --- a/clang/test/Sema/vla.c +++ b/clang/test/Sema/vla.c @@ -60,3 +60,8 @@ void pr5185(int a[*]); void pr5185(int a[*]) // expected-error {{variable length array must be bound in function definition}} { } + +// Make sure this isn't treated as an error +int TransformBug(int a) { + return sizeof(*(int(*)[({ goto v; v: a;})]) 0); // expected-warning {{use of GNU statement expression extension}} +} |

