OSDN Git Service

* c-typeck.c (common_type): push and pop binding level around
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900209_01.C
1 // g++ 1.36.1 bug 900209_01
2
3 // g++ implicitly casts values whose types are "void*" to other pointer
4 // types (just as the language rules for C permit).  Such implicit
5 // conversions are not allowed by the Cfront 2.0 Reference Manual
6 // however.
7
8 // Cfront 2.0 passes this test.
9
10 // keywords: void pointers, type conversions, pointer type conversions
11
12 void * void_pointer_object;
13 char * char_pointer_object;
14
15 void global_function_0 ()
16 {
17   char_pointer_object = void_pointer_object;    // ERROR - 
18 }
19
20 int main () { return 0; }