| 1 |
// { dg-do assemble } |
| 2 |
// { dg-options "" } |
| 3 |
// g++ 1.36.1 bug 900210_07 |
| 4 |
|
| 5 |
// g++ allows values of pointer-to-signed types to be assigned to variables |
| 6 |
// of pointer-to-unsigned types, and vise versa. |
| 7 |
|
| 8 |
// Cfront 2.0 passes this test. |
| 9 |
|
| 10 |
// keyowrds: pointer types, implicit type conversions |
| 11 |
// Special Options: -ansi -pedantic-errors |
| 12 |
signed int *sip; |
| 13 |
unsigned int *uip; |
| 14 |
|
| 15 |
void function () |
| 16 |
{ |
| 17 |
sip = uip; // { dg-error "" } |
| 18 |
uip = sip; // { dg-error "" } |
| 19 |
} |
| 20 |
|
| 21 |
int main () { return 0; } |