aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/unsupported.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/unsupported.c b/test/CodeGen/unsupported.c
new file mode 100644
index 0000000000..2c87163fc0
--- /dev/null
+++ b/test/CodeGen/unsupported.c
@@ -0,0 +1,6 @@
+// RUN: clang -verify -emit-llvm -o %t %s
+
+int f0(int x) {
+ int vla[x]; // expected-error {{cannot codegen this variable-length array yet}}
+ return vla[x-1];
+}