aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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 674547297a..3e380c6d95 100644
--- a/test/Sema/vla.c
+++ b/test/Sema/vla.c
@@ -51,3 +51,6 @@ int f4(int a[*][*]);
int pr2044(int b) {int (*c(void))[b];**c() = 2;} // expected-error {{variably modified type}}
int pr2044b;
int (*pr2044c(void))[pr2044b]; // expected-error {{variably modified type}}
+
+const int f5_ci = 1;
+void f5() { char a[][f5_ci] = {""}; }