commit | 7ccf3e4e286b5926398b6a30a2e04dea9cf6823c | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Feb 10 22:50:24 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Feb 10 22:50:24 2009 +0000 |
tree | 7a6f07b8596e93aa56c99b2bb7a348435afb2942 | |
parent | d7264430e6a7cd8cb0e2d73337a9d4c46dbfffc4 [diff] [blame] |
Handle the case where EmitBlock might be called multiple times for the same block. Fixes PR3536. llvm-svn: 64252
diff --git a/clang/test/CodeGen/vla.c b/clang/test/CodeGen/vla.c index 2197ee1..beb928b 100644 --- a/clang/test/CodeGen/vla.c +++ b/clang/test/CodeGen/vla.c
@@ -18,3 +18,14 @@ int vla[x]; return vla[x-1]; } + +void +f(int count) +{ + int a[count]; + + do { } while (0); + + if (a[0] != 3) { + } +}