URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// { dg-options "" }
|
// { dg-options "" }
|
// g++ 1.36.1 bug 900210_07
|
// g++ 1.36.1 bug 900210_07
|
|
|
// g++ allows values of pointer-to-signed types to be assigned to variables
|
// g++ allows values of pointer-to-signed types to be assigned to variables
|
// of pointer-to-unsigned types, and vise versa.
|
// of pointer-to-unsigned types, and vise versa.
|
|
|
// Cfront 2.0 passes this test.
|
// Cfront 2.0 passes this test.
|
|
|
// keyowrds: pointer types, implicit type conversions
|
// keyowrds: pointer types, implicit type conversions
|
// Special Options: -ansi -pedantic-errors
|
// Special Options: -ansi -pedantic-errors
|
signed int *sip;
|
signed int *sip;
|
unsigned int *uip;
|
unsigned int *uip;
|
|
|
void function ()
|
void function ()
|
{
|
{
|
sip = uip; // { dg-error "" }
|
sip = uip; // { dg-error "" }
|
uip = sip; // { dg-error "" }
|
uip = sip; // { dg-error "" }
|
}
|
}
|
|
|
int main () { return 0; }
|
int main () { return 0; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.