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
/
ac.c
1
barfoo (a)
2
{
3
return (a << 16) & ~0xffff;
4
}
5
6
foobar (a)
7
{
8
return ((unsigned short) a) << 15;}
9
10
foo (a)
11
{
12
return (a & 0x121) << 31;
13
}
14
15
bar (a)
16
{
17
return (a & ~0xffff) << 16;
18
}
19
20
main ()
21
{
22
int a;
23
24
for (a = 1; a; a += a)
25
{
26
printf ("%d", (foo (a)));
27
}
28
puts ("");
29
}
30