2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900210_07.C
blob3a2aae96121f43ddbd429eb9e51c1f97edcbd54f
1 // { dg-do assemble  }
2 // { dg-options "" }
3 // g++ 1.36.1 bug 900210_07
5 // g++ allows values of pointer-to-signed types to be assigned to variables
6 // of pointer-to-unsigned types, and vise versa.
8 // Cfront 2.0 passes this test.
10 // keyowrds: pointer types, implicit type conversions
11 // Special Options: -ansi -pedantic-errors
12 signed int *sip;
13 unsigned int *uip;
15 void function ()
17   sip = uip;            // { dg-error "" } 
18   uip = sip;            // { dg-error "" } 
21 int main () { return 0; }