[cfe-commits] r125997 - /cfe/trunk/test/SemaCXX/abstract.cpp
Chandler Carruth
chandlerc at gmail.com
Fri Feb 18 16:12:24 PST 2011
Author: chandlerc
Date: Fri Feb 18 18:12:23 2011
New Revision: 125997
URL: http://llvm.org/viewvc/llvm-project?rev=125997&view=rev
Log:
Update the test error messages to match the update I made to the actual
messages.
Modified:
cfe/trunk/test/SemaCXX/abstract.cpp
Modified: cfe/trunk/test/SemaCXX/abstract.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/abstract.cpp?rev=125997&r1=125996&r2=125997&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/abstract.cpp (original)
+++ cfe/trunk/test/SemaCXX/abstract.cpp Fri Feb 18 18:12:23 2011
@@ -25,7 +25,7 @@
static_assert(!__is_abstract(E), "E inherits from an abstract class but implements f");
-C *d = new C; // expected-error {{allocating an object of type 'C', which is an abstract class}}
+C *d = new C; // expected-error {{allocating an object of abstract class type 'C'}}
C c; // expected-error {{variable type 'C' is an abstract class}}
void t1(C c); // expected-error {{parameter type 'C' is an abstract class}}
@@ -38,8 +38,8 @@
void t3(const C&);
void f() {
- C(); // expected-error {{allocating an object of type 'C', which is an abstract class}}
- t3(C()); // expected-error {{allocating an object of type 'C', which is an abstract class}}
+ C(); // expected-error {{allocating an object of abstract class type 'C'}}
+ t3(C()); // expected-error {{allocating an object of abstract class type 'C'}}
}
C e1[2]; // expected-error {{array of abstract class type 'C'}}
More information about the cfe-commits
mailing list