diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-27 22:11:01 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-27 22:11:01 +0000 |
commit | 0b288b8a599a3ba5c2226f90854c17a823acee42 (patch) | |
tree | c9be988c1f51f6b6807bda79dc5352af21bc39b5 /clang | |
parent | 1a0625e5cf42ef98032a49bd69c048541002c5b2 (diff) | |
download | bcm5719-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.c | 6 |
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]; +} |