summaryrefslogtreecommitdiffstats
path: root/clang
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
commit0b288b8a599a3ba5c2226f90854c17a823acee42 (patch)
treec9be988c1f51f6b6807bda79dc5352af21bc39b5 /clang
parent1a0625e5cf42ef98032a49bd69c048541002c5b2 (diff)
downloadbcm5719-llvm-0b288b8a599a3ba5c2226f90854c17a823acee42.tar.gz
bcm5719-llvm-0b288b8a599a3ba5c2226f90854c17a823acee42.zip
Add test case to exercise IRgen "unsupported" path (mostly cleanup).
llvm-svn: 58286
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGen/unsupported.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/unsupported.c b/clang/test/CodeGen/unsupported.c
new file mode 100644
index 00000000000..2c87163fc04
--- /dev/null
+++ b/clang/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];
+}
OpenPOWER on IntegriCloud