forked from OSchip/llvm-project
Test conversion from apointer to incomplete type to void* in C++
llvm-svn: 60131
This commit is contained in:
parent
237f96c40f
commit
9ccbcdfb27
|
@ -74,14 +74,17 @@ void test_m() {
|
||||||
|
|
||||||
int* n(char*);
|
int* n(char*);
|
||||||
double* n(void*);
|
double* n(void*);
|
||||||
|
class E;
|
||||||
|
|
||||||
void test_n() {
|
void test_n(E* e) {
|
||||||
char ca[7];
|
char ca[7];
|
||||||
int* ip1 = n(ca);
|
int* ip1 = n(ca);
|
||||||
int* ip2 = n("foo");
|
int* ip2 = n("foo");
|
||||||
|
|
||||||
float fa[7];
|
float fa[7];
|
||||||
double* dp1 = n(fa);
|
double* dp1 = n(fa);
|
||||||
|
|
||||||
|
double* dp2 = n(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PromotesToInt {
|
enum PromotesToInt {
|
||||||
|
|
Loading…
Reference in New Issue