Chris Lattner | aa7d299 | 2009-01-27 18:56:08 +0000 | [diff] [blame] | 1 | // RUN: clang -verify -emit-llvm -o - %s |
Daniel Dunbar | 01de491 | 2008-10-27 22:11:01 +0000 | [diff] [blame] | 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 | } |