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 middle-end/37882
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20040805-1.c
1
#if __INT_MAX__ < 32768 || (defined(STACK_SIZE) && STACK_SIZE < 0x12000)
2
int main () { exit (0); }
3
#else
4
int a[2] = { 2, 3 };
5
6
static int __attribute__((noinline))
7
bar (int x, void *b)
8
{
9
a[0]++;
10
return x;
11
}
12
13
static int __attribute__((noinline))
14
foo (int x)
15
{
16
char buf[0x10000];
17
int y = a[0];
18
a[1] = y;
19
x = bar (x, buf);
20
y = bar (y, buf);
21
return x + y;
22
}
23
24
int
25
main ()
26
{
27
if (foo (100) != 102)
28
abort ();
29
exit (0);
30
}
31
#endif