OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [testsuite/] [libgloss.all/] [func.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.