diff options
Diffstat (limited to 'test/Sema/vla.c')
-rw-r--r-- | test/Sema/vla.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/vla.c b/test/Sema/vla.c index fd7a6bf..4fd6361 100644 --- a/test/Sema/vla.c +++ b/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}} +} |