OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Backported from mainline
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
unsorted
/
xorn.c
1
int
2
xorn (a, b)
3
int a, b;
4
{
5
return a ^ ~b;
6
}
7
8
int
9
not (a)
10
int a;
11
{
12
return ~a;
13
}
14
15
int
16
xor (a, b)
17
int a, b;
18
{
19
return a ^ b;
20
}
21
22
main ()
23
{
24
int i, j;
25
26
for (i = 0; i <= 1; i++)
27
for (j = 0; j <= 1; j++)
28
printf ("%d op %d = %d = %d?\n", i, j,
29
1 & xor (i, not (j)),
30
1 & xorn (i, j));
31
}