aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/invalid-member-expr.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-11-03 17:52:57 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-11-03 17:52:57 +0000
commit9fa8e569407e02148888136609431a3fe083096d (patch)
treec099b92438f8a27e24f13c55e93738770d453f4f /test/SemaCXX/invalid-member-expr.cpp
parentfec56e7e341cd1d9a861d64bffc80a97aed89802 (diff)
Make this error less specific but also less likely to cause confusion. Fixes
PR7702. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/invalid-member-expr.cpp')
-rw-r--r--test/SemaCXX/invalid-member-expr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/SemaCXX/invalid-member-expr.cpp b/test/SemaCXX/invalid-member-expr.cpp
index 7307a47f82..37025d9334 100644
--- a/test/SemaCXX/invalid-member-expr.cpp
+++ b/test/SemaCXX/invalid-member-expr.cpp
@@ -7,8 +7,8 @@ void test() {
x.int; // expected-error{{expected unqualified-id}}
x.~int(); // expected-error{{expected a class name}}
- x.operator; // expected-error{{missing type specifier after 'operator'}}
- x.operator typedef; // expected-error{{missing type specifier after 'operator'}}
+ x.operator; // expected-error{{expected a type}}
+ x.operator typedef; // expected-error{{expected a type}}
}
void test2() {
@@ -16,8 +16,8 @@ void test2() {
x->int; // expected-error{{expected unqualified-id}}
x->~int(); // expected-error{{expected a class name}}
- x->operator; // expected-error{{missing type specifier after 'operator'}}
- x->operator typedef; // expected-error{{missing type specifier after 'operator'}}
+ x->operator; // expected-error{{expected a type}}
+ x->operator typedef; // expected-error{{expected a type}}
}
// PR6327