summaryrefslogtreecommitdiff
path: root/tests/comparison.c
blob: 44b7f46ce9fdecf34e7b4de38931b0a1776daf76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
int main() {
  int a = 10;
  int b = 5;
  int c = 10;
  
  int lt = a < b;
  int le = a <= c;
  int gt = a > b;
  int ge = a >= c;
  int eq = a == c;
  int ne = a != b;
  
  return lt + le + gt + ge + eq + ne;
}