2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900210_08.C
blob163757b0c3074cb4bf5a61182393873ce86db115
1 // { dg-do assemble  }
2 // g++ 1.36.1 bug 900210_08
4 // g++ allows pointer-to-const values to be implicitly converted to
5 // void* values.  This causes a silent loss of the const qualifier.
7 // Cfront 2.0 passes this test.
9 // keywords: pointer types, implicit type conversions
11 const char *ccp;
12 void *vp;
14 void function ()
16   vp = ccp;             /* { dg-error "" } */
19 int main () { return 0; }