From: Douglas Gregor Date: Wed, 26 Nov 2008 23:33:36 +0000 (+0000) Subject: Test conversion from apointer to incomplete type to void* in C++ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f669f54f19233b703f38ef2fb3793c26c6caabb;p=clang Test conversion from apointer to incomplete type to void* in C++ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60131 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/overload-call.cpp b/test/SemaCXX/overload-call.cpp index 963f7bd1e3..5460521e11 100644 --- a/test/SemaCXX/overload-call.cpp +++ b/test/SemaCXX/overload-call.cpp @@ -74,14 +74,17 @@ void test_m() { int* n(char*); double* n(void*); +class E; -void test_n() { +void test_n(E* e) { char ca[7]; int* ip1 = n(ca); int* ip2 = n("foo"); float fa[7]; double* dp1 = n(fa); + + double* dp2 = n(e); } enum PromotesToInt {