URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900210_07.C] - Rev 20
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "" }
// 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; // { dg-error "" }
uip = sip; // { dg-error "" }
}
int main () { return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log