aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bugs/900210_07.C
blob: 10130586d30acbf77aba521b180f5490b2f65ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// g++ 1.36.1 bug 900210_07

// g++ allows values of pointer-to-signed types to be assigned to variables
// of pointer-to-unsigned types, and vise versa.

// Cfront 2.0 passes this test.

// keyowrds: pointer types, implicit type conversions
// Special Options: -ansi -pedantic-errors
signed int *sip;
unsigned int *uip;

void function ()
{
  sip = uip;		// ERROR - 
  uip = sip;		// ERROR - 
}

int main () { return 0; }