Daniel Dunbar | 01de491 | 2008-10-27 22:11:01 +0000 | [diff] [blame] | 1 | // RUN: clang -verify -emit-llvm -o %t %s |
2 | |||||
3 | int f0(int x) { | ||||
Anders Carlsson | 842a36d | 2008-12-20 19:33:21 +0000 | [diff] [blame^] | 4 | int vla[x]; |
5 | return vla[x-1]; // expected-error {{cannot codegen this return inside scope with VLA yet}} | ||||
Daniel Dunbar | 01de491 | 2008-10-27 22:11:01 +0000 | [diff] [blame] | 6 | } |