From: Daniel Dunbar Date: Mon, 27 Oct 2008 22:11:01 +0000 (+0000) Subject: Add test case to exercise IRgen "unsupported" path (mostly cleanup). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c90363e9c4cf6c6de787eb3510a6355417d310f;p=clang 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 --- 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]; +}