diff options
author | dim <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | 952eddef9aff85b1e92626e89baaf7a360e2ac85 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/SemaObjCXX/arc-nsconsumed-errors.mm | |
parent | ea266cad53e3d49771fa38103913d3ec7a166694 (diff) | |
download | FreeBSD-src-952eddef9aff85b1e92626e89baaf7a360e2ac85.zip FreeBSD-src-952eddef9aff85b1e92626e89baaf7a360e2ac85.tar.gz |
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841
Diffstat (limited to 'test/SemaObjCXX/arc-nsconsumed-errors.mm')
-rw-r--r-- | test/SemaObjCXX/arc-nsconsumed-errors.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/SemaObjCXX/arc-nsconsumed-errors.mm b/test/SemaObjCXX/arc-nsconsumed-errors.mm index 10ae10d..c78d8a5 100644 --- a/test/SemaObjCXX/arc-nsconsumed-errors.mm +++ b/test/SemaObjCXX/arc-nsconsumed-errors.mm @@ -29,11 +29,12 @@ 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 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 |