commit | 9444638e4e4d1920d423d0cf2e1912f72b4d9ffb | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Fri May 29 19:23:46 2009 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Fri May 29 19:23:46 2009 +0000 |
tree | c58d74a96227dce3555309e6ad6479d376f1974a | |
parent | a678874975003e8ddc5fc5fdecbfd80956ef257c [diff] [blame] |
Re-add a slightly more general version of the check from r72578; it is actually necessary in some obscure cases. llvm-svn: 72585
diff --git a/clang/test/CodeGen/vla.c b/clang/test/CodeGen/vla.c index 3666d5ee..844e49e 100644 --- a/clang/test/CodeGen/vla.c +++ b/clang/test/CodeGen/vla.c
@@ -29,3 +29,9 @@ if (a[0] != 3) { } } + +void g(int count) { + // Make sure we emit sizes correctly in some obscure cases + int (*a[5])[count]; + int (*b)[][count]; +}