From 03261851a10dd2d6900a0a00a7515a0a46fb5d76 Mon Sep 17 00:00:00 2001 From: Ranjith Kumaran Date: Fri, 17 Mar 2000 22:48:54 +0000 Subject: 20000317 sourceware import --- libgloss/testsuite/libgloss.all/func.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libgloss/testsuite/libgloss.all/func.c (limited to 'libgloss/testsuite/libgloss.all/func.c') diff --git a/libgloss/testsuite/libgloss.all/func.c b/libgloss/testsuite/libgloss.all/func.c new file mode 100644 index 000000000..50ca2070d --- /dev/null +++ b/libgloss/testsuite/libgloss.all/func.c @@ -0,0 +1,26 @@ +/* Oki bug report [OKI002](gcc008_2) + + The following program is not executed. + Error message is as follow. + + illegal trap: 0x12 pc=d000d954 + d000d954 08000240 NOP + + */ + +#include +#include + +int func (int, ...); + +void main () +{ + func (2, 1., 2., 3.); + pass ("func [OKI002]"); + fflush (stdout); +} + +int func (int i, ...) +{ + return (i); +} -- cgit v1.2.3