URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wdiv-by-zero.C] - Rev 839
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