Typo in test.

llvm-svn: 147905
This commit is contained in:
John McCall 2012-01-11 01:35:55 +00:00
parent 3f406ba4bf
commit fd3b664f30
1 changed files with 2 additions and 2 deletions

View File

@ -37,6 +37,6 @@ void test2(Test2 *a) {
- (int) length;
@end
void test3(Test3 *t) {
char vla[t.length] = {};
char *heaparray = new char[t.length]; // expected-error {{variable-sized object may not be initialized}}
char vla[t.length] = {}; // expected-error {{variable-sized object may not be initialized}}
char *heaparray = new char[t.length];
}