[cfe-commits] r147905 - /cfe/trunk/test/SemaObjCXX/properties.mm

John McCall rjmccall at apple.com
Tue Jan 10 17:35:55 PST 2012


Author: rjmccall
Date: Tue Jan 10 19:35:55 2012
New Revision: 147905

URL: http://llvm.org/viewvc/llvm-project?rev=147905&view=rev
Log:
Typo in test.

Modified:
    cfe/trunk/test/SemaObjCXX/properties.mm

Modified: cfe/trunk/test/SemaObjCXX/properties.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/properties.mm?rev=147905&r1=147904&r2=147905&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/properties.mm (original)
+++ cfe/trunk/test/SemaObjCXX/properties.mm Tue Jan 10 19:35:55 2012
@@ -37,6 +37,6 @@
 - (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];
 }





More information about the cfe-commits mailing list