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++.mike/] [eh52.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do run }
// { dg-options "-fexceptions -O9" }
int promote_mode (int mode, int *punsignedp)
{
int unsignedp = *punsignedp;
*punsignedp = unsignedp;
return mode;
}
int main() {
int i;
i = promote_mode (42, &i);
return i != 42;
}