]> granicus.if.org Git - clang/commitdiff
Add test case to exercise IRgen "unsupported" path (mostly cleanup).
authorDaniel Dunbar <daniel@zuster.org>
Mon, 27 Oct 2008 22:11:01 +0000 (22:11 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 27 Oct 2008 22:11:01 +0000 (22:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58286 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/unsupported.c [new file with mode: 0644]

diff --git a/test/CodeGen/unsupported.c b/test/CodeGen/unsupported.c
new file mode 100644 (file)
index 0000000..2c87163
--- /dev/null
@@ -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];
+}