diff options
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]; +} |