summaryrefslogtreecommitdiffstats
path: root/test/FixIt
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-10-11 23:14:30 +0000
committerJohn McCall <rjmccall@apple.com>2011-10-11 23:14:30 +0000
commit6dbba4fc128e2e2f5b26be996392bd32c0707f13 (patch)
tree39387293b950b16aa176d75fe9d5b3201e0b56e8 /test/FixIt
parent336c8f70ff961c5568de3b9c65fb0502843b7407 (diff)
Catch placeholder types in DefaultLvalueConversion
and DefaultFunctionArrayLvalueConversion. To prevent significant regression for should-this-be-a-call fixits, and to repair some such regression from the introduction of bound member placeholders, make those placeholder checks try to build calls appropriately. Harden the build-a-call logic while we're at it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt')
-rw-r--r--test/FixIt/typo-crash.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/FixIt/typo-crash.cpp b/test/FixIt/typo-crash.cpp
index 8f0c989cce..92d20377e8 100644
--- a/test/FixIt/typo-crash.cpp
+++ b/test/FixIt/typo-crash.cpp
@@ -4,9 +4,9 @@
// PR10355
template<typename T> void template_id1() { // expected-note {{'template_id1' declared here}} \
- // expected-note {{candidate function}}
+ // expected-note {{possible target for call}}
template_id2<> t; // expected-error {{no template named 'template_id2'; did you mean 'template_id1'?}} \
// expected-error {{expected ';' after expression}} \
- // expected-error {{cannot resolve overloaded function 'template_id1' from context}} \
+ // expected-error {{reference to overloaded function could not be resolved; did you mean to call it?}} \
// expected-error {{use of undeclared identifier 't'}}
}