URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900324_02.C] - Rev 706
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// g++ 1.37.1 bug 900324_02
// The following erroreous code causes g++ to segfault.
// Cfront 2.0 passes this test.
// keywords: segfault, function pointer, conditional operator ?:
void function_0 (int i) { }
void (*fp)(void);
void function_1 ()
{
fp = 1 ? function_0 : fp; // { dg-error "conditional expression|invalid conversion" }
}
int main () { return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log