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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [980608-1.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
#include <stdarg.h>
2
 
3
void f1(int a,int b,int c,int d,int e, int f,int g,int h,int i,int j, int k,int
4
l,int m,int n,int o)
5
{
6
    return;
7
}
8
 
9
inline void debug(const char *msg,...)
10
{
11
    va_list ap;
12
    va_start( ap, msg );
13
 
14
    f1(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
15
 
16
    if ( va_arg(ap,int) != 101)
17
        abort();
18
    if ( va_arg(ap,int) != 102)
19
        abort();
20
    if ( va_arg(ap,int) != 103)
21
        abort();
22
    if ( va_arg(ap,int) != 104)
23
        abort();
24
    if ( va_arg(ap,int) != 105)
25
        abort();
26
    if ( va_arg(ap,int) != 106)
27
        abort();
28
 
29
    va_end( ap );
30
}
31
 
32
int main(void)
33
{
34
  debug("%d %d %d  %d %d %d\n", 101, 102, 103, 104, 105, 106);
35
  exit(0);
36
}

powered by: WebSVN 2.1.0

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