PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wdiv-by-zero.C
blob7dc77667c225ee5181c15a3cbd51efa2f1474a22
1 // test that division by zero warnings are enabled by default
2 int breakme()
4   int x = 0;
5   x /= 0;          // { dg-warning "division by" }
6   return x;