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
/
20030117-1.c
1
int foo (int, int, int);
2
int bar (int, int, int);
3
4
int main (void)
5
{
6
if (foo (5, 10, 21) != 12)
7
abort ();
8
9
if (bar (9, 12, 15) != 150)
10
abort ();
11
12
exit (0);
13
}
14
15
int foo (int x, int y, int z)
16
{
17
return (x + y + z) / 3;
18
}
19
20
int bar (int x, int y, int z)
21
{
22
return foo (x * x, y * y, z * z);
23
}