URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wdiv-by-zero.C] - Rev 315
Go to most recent revision | Compare with Previous | Blame | View Log
// test that division by zero warnings are enabled by default
int breakme()
{
int x = 0;
x /= 0; // { dg-warning "division by" }
return x;
}
Go to most recent revision | Compare with Previous | Blame | View Log