From 2fce988e86bc01829142e4362d4eff1af0925147 Mon Sep 17 00:00:00 2001 From: rdivacky <rdivacky@FreeBSD.org> Date: Sat, 23 Jan 2010 11:10:26 +0000 Subject: Update clang to r94309. --- test/SemaCXX/overload-call.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/SemaCXX/overload-call.cpp') diff --git a/test/SemaCXX/overload-call.cpp b/test/SemaCXX/overload-call.cpp index d20bf23..12dc5da 100644 --- a/test/SemaCXX/overload-call.cpp +++ b/test/SemaCXX/overload-call.cpp @@ -333,3 +333,17 @@ namespace test2 { inline bool operator!=(const qrgb666 &v) const { return !(*this == v); } }; } + +// PR 6117 +namespace test3 { + struct Base {}; + struct Incomplete; + + void foo(Base *); // expected-note 2 {{cannot convert argument of incomplete type}} + void foo(Base &); // expected-note 2 {{cannot convert argument of incomplete type}} + + void test(Incomplete *P) { + foo(P); // expected-error {{no matching function for call to 'foo'}} + foo(*P); // expected-error {{no matching function for call to 'foo'}} + } +} -- cgit v1.1