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
PR c/10175
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
20021018-1.c
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fpic" } */
3
4
extern void abort (void);
5
extern void exit (int);
6
7
static const long foo [10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
8
9
long __attribute__((noinline))
10
bar (int x)
11
{
12
return foo [x - 0x6ffffffa];
13
}
14
15
int
16
main (void)
17
{
18
if (bar (0x6ffffffc) != 2)
19
abort ();
20
exit (0);
21
}