Last change
on this file since 548 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
383 bytes
|
Rev | Line | |
---|
[444] | 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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.