diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-02-19 00:12:23 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-02-19 00:12:23 +0000 |
commit | 0a8709a4744f6a80a006edf78b27597d9232ee30 (patch) | |
tree | e2a8fc90e66f9b8c130f06b204040b47abeb3da3 | |
parent | 45f11b78750590b1b1bcec6746c7639a256ce2a2 (diff) |
Update the test error messages to match the update I made to the actual
messages.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125997 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaCXX/abstract.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaCXX/abstract.cpp b/test/SemaCXX/abstract.cpp index a637284950..48805e217b 100644 --- a/test/SemaCXX/abstract.cpp +++ b/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'}} |