aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-01-11 01:35:55 +0000
committerJohn McCall <rjmccall@apple.com>2012-01-11 01:35:55 +0000
commit52f220df136eaa96b648d8ce0cc29b62c48d645c (patch)
treecce7203a60ad3f04d240e829da2bafbcccba4d19
parent256ef642f8feef22fd53be7efa868e8e34752eed (diff)
Typo in test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147905 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaObjCXX/properties.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjCXX/properties.mm b/test/SemaObjCXX/properties.mm
index 1b6c0c54cd..d56ac15757 100644
--- a/test/SemaObjCXX/properties.mm
+++ b/test/SemaObjCXX/properties.mm
@@ -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];
}