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

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