aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cse-not01.c
blob: f87123f14f13bd4852754ce1af02bdd51d7e2eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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-known-to-fail
 *
 * check-output-ignore
 * check-output-returns: 1
 */