summaryrefslogtreecommitdiff
path: root/clang/test/Analysis/symbol-simplification-bo-div.c
blob: 122ad4083b1dfc0b020b8875cef8b039adac70ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_analyze_cc1 -analyzer-checker=core %s \
// RUN:    -triple x86_64-pc-linux-gnu -verify

// don't crash
// expected-no-diagnostics

int a, b;
int c(void) {
  unsigned d = a;
  --d;
  short e = b / b - a;
  ++e;
  return d <= 0 && e && e;
}