aboutsummaryrefslogtreecommitdiff
path: root/test/vla.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/vla.c')
-rw-r--r--test/vla.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/vla.c b/test/vla.c
new file mode 100644
index 0000000..61f3dcf
--- /dev/null
+++ b/test/vla.c
@@ -0,0 +1,5 @@
+short g() { return 1; }
+long f(void) {
+ double a[10 + g()];
+ return sizeof(a);
+}