Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900210_06.C
blob0475a82c9517dab10e621c53e3efa98a167b9cfb
1 // { dg-do assemble  }
2 // g++ 1.36.1 bug 900210_06
4 // g++ allows values of pointer-to-const types to be assigned to variables
5 // of pointer-to-non-const types.
7 // Cfront 2.0 disallows such assignments.
9 // g++ also allows values of pointer-to-volatile types to be assigned to
10 // variables of pointer-to-non-volatile types.
12 // Cfront 2.0 *would* disallow this (if it only supported "volatile").
14 // keywords: pointer types, implicit type conversions
16 const char *ccp;
17 volatile char *vcp;
18 char *cp;
20 void function ()
22   cp = ccp;             /* { dg-error "" } */
23   cp = vcp;             /* { dg-error "" } */
26 int main () { return 0; }