summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-02-19 00:12:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-02-19 00:12:23 +0000
commitfc1ad1f3713e65b5c2773341d31a3ae12f9258a7 (patch)
tree4c1550ea149a3d501596381b89f61fa4bb6b2f8d
parent98e3c568bfbd06ad8042f335d49ca0293eb3a0f5 (diff)
downloadbcm5719-llvm-fc1ad1f3713e65b5c2773341d31a3ae12f9258a7.tar.gz
bcm5719-llvm-fc1ad1f3713e65b5c2773341d31a3ae12f9258a7.zip
Update the test error messages to match the update I made to the actual
messages. llvm-svn: 125997
-rw-r--r--clang/test/SemaCXX/abstract.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/abstract.cpp b/clang/test/SemaCXX/abstract.cpp
index a6372849509..48805e217b6 100644
--- a/clang/test/SemaCXX/abstract.cpp
+++ b/clang/test/SemaCXX/abstract.cpp
@@ -25,7 +25,7 @@ class E : D {
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 @@ struct S {
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'}}
OpenPOWER on IntegriCloud