1// g++ 1.36.1 bug 900210_03 2 3// g++ allows void* type values to be assigned to variables of other 4// pointer types. According to the C++ Reference Manual, this is illegal. 5 6// Cfront 2.0 passes this test. 7 8// keywords: void pointers, pointer type conversions, implicit type conversions 9 10void* vp; 11char* cp; 12int* ip; 13enum {enum_value_1} * ep; 14struct { int member; } * sp; 15void (*fp) (void); 16 17void global_function () 18{ 19 cp = vp; /* ERROR - */ 20 ip = vp; /* ERROR - */ 21 ep = vp; /* ERROR - */ 22 sp = vp; /* ERROR - */ 23 fp = vp; /* ERROR - */ 24} 25 26int main () { return 0; } 27