Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wdiv-by-zero.C
blob: 7dc77667c225ee5181c15a3cbd51efa2f1474a22 [
file
] [
log
] [
blame
]
// test that division by zero warnings are enabled by default
int
breakme
()
{
int
x
=
0
;
x
/=
0
;
// { dg-warning "division by" }
return
x
;
}