[cfe-commits] r60131 - /cfe/trunk/test/SemaCXX/overload-call.cpp
Douglas Gregor
doug.gregor at gmail.com
Wed Nov 26 15:33:37 PST 2008
Author: dgregor
Date: Wed Nov 26 17:33:36 2008
New Revision: 60131
URL: http://llvm.org/viewvc/llvm-project?rev=60131&view=rev
Log:
Test conversion from apointer to incomplete type to void* in C++
Modified:
cfe/trunk/test/SemaCXX/overload-call.cpp
Modified: cfe/trunk/test/SemaCXX/overload-call.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/overload-call.cpp?rev=60131&r1=60130&r2=60131&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/overload-call.cpp (original)
+++ cfe/trunk/test/SemaCXX/overload-call.cpp Wed Nov 26 17:33:36 2008
@@ -74,14 +74,17 @@
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 {
More information about the cfe-commits
mailing list