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
2007-09-03 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
builtin-apply4.c
1
/* PR tree-optimization/20076 */
2
/* { dg-options "-O2" } */
3
/* { dg-do run } */
4
5
extern void abort (void);
6
7
double
8
foo (int arg)
9
{
10
if (arg != 116)
11
abort();
12
return arg + 1;
13
}
14
15
inline double
16
bar (int arg)
17
{
18
foo (arg);
19
__builtin_return (__builtin_apply ((void (*) ()) foo,
20
__builtin_apply_args (), 16));
21
}
22
23
int
24
main (int argc, char **argv)
25
{
26
if (bar (116) != 117.0)
27
abort ();
28
29
return 0;
30
}