aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-27 22:11:01 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-27 22:11:01 +0000
commit1c90363e9c4cf6c6de787eb3510a6355417d310f (patch)
treeb3e4958619873b20e52795ae63cef7c79701aa09
parent276373df8cb30dde91000d1b3d9dccc6c25aedef (diff)
Add test case to exercise IRgen "unsupported" path (mostly cleanup).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58286 91177308-0d34-0410-b5e6-96231b3b80d8
-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];
+}