Welcome to mirror list, hosted at ThFree Co, Russian Federation.

func.c « libgloss.all « testsuite « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50ca2070d4efe6eb71a40d872e3c17103e824547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 <stdio.h>
#include <stdarg.h>

int func (int, ...);

void main ()
{
        func (2, 1., 2., 3.);
	pass ("func [OKI002]");
	fflush (stdout);
}

int func (int i, ...)
{
        return (i);
}