aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/member-expr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-06 06:30:47 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-06 06:30:47 +0000
commit3f0b5fd3a55baf1e3e768fe981bcc3ad5e209ec1 (patch)
tree0a77bb251f5c506471815a437eb9c5d4a0531252 /test/SemaCXX/member-expr.cpp
parent27591ff4fc64600fd67c5d81899e3efe5ef41a80 (diff)
Rework the fix-it hint for code like
get_origin->x where get_origin is actually a function and the user has forgotten the parentheses. Instead of giving a lame note for the fix-it, give a full-fledge error, early, then build the call expression to try to recover. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/member-expr.cpp')
-rw-r--r--test/SemaCXX/member-expr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/SemaCXX/member-expr.cpp b/test/SemaCXX/member-expr.cpp
index 069f52605b..cd13bcc367 100644
--- a/test/SemaCXX/member-expr.cpp
+++ b/test/SemaCXX/member-expr.cpp
@@ -28,8 +28,7 @@ struct B {
A *f0();
};
int f0(B *b) {
- return b->f0->f0; // expected-error{{member reference base type 'struct A *()' is not a structure or union}} \
- // expected-note{{perhaps you meant to call this function}}
+ return b->f0->f0; // expected-error{{perhaps you meant to call this function}}
}
int i;