summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/clang-analyzer-core.DivideZero.cpp
blob: aac9f7c9f6ec5116b0b637c172ccf402b0fa8857 (plain)
1
2
3
4
void test(int z) {
  if (z == 0)
    int x = 1 / z;
}