[cfe-commits] r58286 - /cfe/trunk/test/CodeGen/unsupported.c
Daniel Dunbar
daniel at zuster.org
Mon Oct 27 15:11:01 PDT 2008
Author: ddunbar
Date: Mon Oct 27 17:11:01 2008
New Revision: 58286
URL: http://llvm.org/viewvc/llvm-project?rev=58286&view=rev
Log:
Add test case to exercise IRgen "unsupported" path (mostly cleanup).
Added:
cfe/trunk/test/CodeGen/unsupported.c
Added: cfe/trunk/test/CodeGen/unsupported.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/unsupported.c?rev=58286&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/unsupported.c (added)
+++ cfe/trunk/test/CodeGen/unsupported.c Mon Oct 27 17:11:01 2008
@@ -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];
+}
More information about the cfe-commits
mailing list