repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arc
/
va_args-2.c
blob
18f48b030b0493484dde89b8cd9577132afa888d
1
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
/* { dg-additional-sources "abitest.S" } */
4
5
extern
int
clone
(
int
(*
fn
)(
void
*),
void
*
child_stack
,
6
int
flags
,
void
*
arg
, ...);
7
8
int
main
(
void
)
9
{
10
int
a
=
clone
((
void
*)
1
, (
void
*)
2
,
3
, (
void
*)
4
,
5
,
6
,
7
);
11
if
(
a
!=
28
)
12
return
1
;
13
return
0
;
14
}