Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.bugs / 900209_01.C
blob6d91010ec55d4d1847211443a20370c3eb8690fa
1 // { dg-do assemble  }
2 // g++ 1.36.1 bug 900209_01
4 // g++ implicitly casts values whose types are "void*" to other pointer
5 // types (just as the language rules for C permit).  Such implicit
6 // conversions are not allowed by the Cfront 2.0 Reference Manual
7 // however.
9 // Cfront 2.0 passes this test.
11 // keywords: void pointers, type conversions, pointer type conversions
13 void * void_pointer_object;
14 char * char_pointer_object;
16 void global_function_0 ()
18   char_pointer_object = void_pointer_object;    // { dg-error "" } 
21 int main () { return 0; }