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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20041113-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 test (int x, ...)
4
{
5
    va_list ap;
6
    int i;
7
    va_start (ap, x);
8
    if (va_arg (ap, int) != 1)
9
        abort ();
10
    if (va_arg (ap, int) != 2)
11
        abort ();
12
    if (va_arg (ap, int) != 3)
13
        abort ();
14
    if (va_arg (ap, int) != 4)
15
        abort ();
16
}
17
 
18
double a = 40.0;
19
 
20
int main(int argc, char *argv[])
21
{
22
    test(0, 1, 2, 3, (int)(a / 10.0));
23
    exit (0);
24
}

powered by: WebSVN 2.1.0

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