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
/
execute
/
941015-1.c
1
int
2
foo1 (value)
3
long long value;
4
{
5
register const long long constant = 0xc000000080000000LL;
6
7
if (value < constant)
8
return 1;
9
else
10
return 2;
11
}
12
13
int
14
foo2 (value)
15
unsigned long long value;
16
{
17
register const unsigned long long constant = 0xc000000080000000LL;
18
19
if (value < constant)
20
return 1;
21
else
22
return 2;
23
}
24
25
main ()
26
{
27
unsigned long long value = 0xc000000000000001LL;
28
int x, y;
29
30
x = foo1 (value);
31
y = foo2 (value);
32
if (x != y || x != 1)
33
abort ();
34
exit (0);
35
}