aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/vla.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/vla.c')
-rw-r--r--test/Sema/vla.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/vla.c b/test/Sema/vla.c
index e03dda8c5f6c..b9576bf8cfd6 100644
--- a/test/Sema/vla.c
+++ b/test/Sema/vla.c
@@ -61,6 +61,9 @@ void pr5185(int a[*]) // expected-error {{variable length array must be bound in
{
}
+void pr23151(int (*p1)[*]) // 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}}