From 0f669f54f19233b703f38ef2fb3793c26c6caabb Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 26 Nov 2008 23:33:36 +0000 Subject: [PATCH] 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 --- test/SemaCXX/overload-call.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {