Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / xorn.c
blobf50c424e6243b467936281436e866ebf444c65d5
1 /* { dg-additional-options "-std=gnu89" } */
3 int
4 xorn (a, b)
5 int a, b;
7 return a ^ ~b;
10 int
11 not (a)
12 int a;
14 return ~a;
17 int
18 xor (a, b)
19 int a, b;
21 return a ^ b;
24 main ()
26 int i, j;
28 for (i = 0; i <= 1; i++)
29 for (j = 0; j <= 1; j++)
30 printf ("%d op %d = %d = %d?\n", i, j,
31 1 & xor (i, not (j)),
32 1 & xorn (i, j));