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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [libgloss/] [testsuite/] [libgloss.all/] [func.c] - Rev 829

Compare with Previous | Blame | View Log

/* 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);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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