source: trunk/libs/newlib/src/libgloss/testsuite/libgloss.all/func.c @ 557

Last change on this file since 557 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 383 bytes
Line 
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
14int func (int, ...);
15
16void main ()
17{
18        func (2, 1., 2., 3.);
19        pass ("func [OKI002]");
20        fflush (stdout);
21}
22
23int func (int i, ...)
24{
25        return (i);
26}
Note: See TracBrowser for help on using the repository browser.