repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
gcc
/
libgloss
/
testsuite
/
libgloss.all
/
func.c
blob
50ca2070d4efe6eb71a40d872e3c17103e824547
1
/* Oki bug report [OKI002](gcc008_2)
2
3
The following program is not executed.
4
Error message is as follow.
5
6
illegal trap: 0x12 pc=d000d954
7
d000d954 08000240 NOP
8
9
*/
10
11
#include <stdio.h>
12
#include <stdarg.h>
13
14
int
func
(
int
, ...);
15
16
void
main
()
17
{
18
func
(
2
,
1
.,
2
.,
3
.);
19
pass
(
"func [OKI002]"
);
20
fflush
(
stdout
);
21
}
22
23
int
func
(
int
i
, ...)
24
{
25
return
(
i
);
26
}