summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wno-div-by-zero.C
blob: 937628ee924ccdb9c8086c2a1f33db07ebe821f6 (plain)
1
2
3
4
5
6
7
8
// { dg-options "-Wno-div-by-zero" }

int breakme()
{
  int x = 0;
  x /= 0;
  return x;
}