FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900210_06.C
blobd52f51143de0483646bfc3735e49aaa10a322fb3
1 // g++ 1.36.1 bug 900210_06
3 // g++ allows values of pointer-to-const types to be assigned to variables
4 // of pointer-to-non-const types.
6 // Cfront 2.0 disallows such assignments.
8 // g++ also allows values of pointer-to-volatile types to be assigned to
9 // variables of pointer-to-non-volatile types.
11 // Cfront 2.0 *would* disallow this (if it only supported "volatile").
13 // keywords: pointer types, implicit type conversions
15 const char *ccp;
16 volatile char *vcp;
17 char *cp;
19 void function ()
21   cp = ccp;             /* ERROR - */
22   cp = vcp;             /* ERROR - */
25 int main () { return 0; }