aboutsummaryrefslogtreecommitdiff
path: root/test/func-vla.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/func-vla.c')
-rw-r--r--test/func-vla.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/func-vla.c b/test/func-vla.c
new file mode 100644
index 0000000..6718c05
--- /dev/null
+++ b/test/func-vla.c
@@ -0,0 +1,8 @@
+int f(int n, long long (*a)[n]) {
+ return sizeof *a;
+}
+
+int main(void) {
+ long long a[5];
+ return f(5, &a) != sizeof a;
+}