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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [va-arg-20.c] - Blame information for rev 801

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 foo(va_list v)
4
{
5
    unsigned long long x = va_arg (v, unsigned long long);
6
    if (x != 16LL)
7
        abort();
8
}
9
 
10
void bar(char c, char d, ...)
11
{
12
    va_list v;
13
    va_start(v, d);
14
    foo(v);
15
    va_end(v);
16
}
17
 
18
int main(void)
19
{
20
    bar(0, 0, 16LL);
21
    exit(0);
22
}

powered by: WebSVN 2.1.0

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