From: Nick Lewycky Date: Tue, 6 May 2014 22:28:58 +0000 (+0000) Subject: Add testcase for r208062. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c269f94ffbb0aa72b1a1e5efc45e47928051de9;p=clang Add testcase for r208062. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208138 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/overload-call.cpp b/test/SemaCXX/overload-call.cpp index 615b10a439..da28eefe7a 100644 --- a/test/SemaCXX/overload-call.cpp +++ b/test/SemaCXX/overload-call.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s +// RUN: %clang_cc1 -pedantic -verify %s int* f(int) { return 0; } float* f(float) { return 0; } void f(); @@ -580,3 +580,13 @@ namespace PR12931 { void f(const volatile int &, int); void g() { f(0, 0); } } + +void test5() { + struct { + typedef void F1(int); + typedef void F2(double); + operator F1*(); // expected-note{{conversion candidate}} + operator F2*(); // expected-note{{conversion candidate}} + } callable; + callable(); // expected-error{{no matching function for call}} +}