aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cse-not02.c
blob: 70addebcfbb6c5ebab8731bf4526b03837b1f8a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
int and(int a, int b) { return ((a == b) & (a != b)) == 0; }
int ior(int a, int b) { return ((a == b) | (a != b)) == 1; }
int xor(int a, int b) { return ((a == b) ^ (a != b)) == 1; }

/*
 * check-name: cse-not02
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-returns: 1
 */