summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjCXX/arc-nsconsumed-errors.mm
diff options
context:
space:
mode:
authorLarisse Voufo <lvoufo@google.com>2013-07-19 23:00:19 +0000
committerLarisse Voufo <lvoufo@google.com>2013-07-19 23:00:19 +0000
commit98b20f1278e097f9f56b0c3bdb6740e230a47832 (patch)
tree6d127a92bd1758f9fe11e4a9f0579221acd1519c /clang/test/SemaObjCXX/arc-nsconsumed-errors.mm
parent47c0845e0b388966ae8b9245057b3b2ba89bd589 (diff)
downloadbcm5719-llvm-98b20f1278e097f9f56b0c3bdb6740e230a47832.tar.gz
bcm5719-llvm-98b20f1278e097f9f56b0c3bdb6740e230a47832.zip
FIXME fix: improving diagnostics for template arguments deduction of class templates and explicit specializations
This patch essentially removes all the FIXMEs following calls to DeduceTemplateArguments() that want to keep track of deduction failure info. llvm-svn: 186730
Diffstat (limited to 'clang/test/SemaObjCXX/arc-nsconsumed-errors.mm')
-rw-r--r--clang/test/SemaObjCXX/arc-nsconsumed-errors.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/SemaObjCXX/arc-nsconsumed-errors.mm b/clang/test/SemaObjCXX/arc-nsconsumed-errors.mm
index 10ae10d0498..c1ce81b6693 100644
--- a/clang/test/SemaObjCXX/arc-nsconsumed-errors.mm
+++ b/clang/test/SemaObjCXX/arc-nsconsumed-errors.mm
@@ -29,11 +29,13 @@ void releaser(__attribute__((ns_consumed)) id);
releaser_t r2 = releaser; // no-warning
template <typename T>
-void templateFunction(T) {} // expected-note {{candidate function}}
+void templateFunction(T) { } // expected-note {{candidate function}} \
+ // expected-note {{candidate template ignored: could not match 'void (__strong id)' against 'void (id)'}} \
+ // expected-note {{candidate template ignored: failed template argument deduction}}
releaser_t r3 = templateFunction<id>; // expected-error {{address of overloaded function 'templateFunction' does not match required type 'void (id)'}}
template <typename T>
-void templateReleaser(__attribute__((ns_consumed)) T) {}
+void templateReleaser(__attribute__((ns_consumed)) T) { } // expected-note 2{{candidate template ignored: failed template argument deduction}}
releaser_t r4 = templateReleaser<id>; // no-warning
OpenPOWER on IntegriCloud