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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [va-arg-pack-2.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
 
4
extern void noreturn (int status, ...);
5
 
6
extern inline __attribute ((always_inline)) void
7
error (int status, ...)
8
{
9
  if (__builtin_constant_p (status))
10
    noreturn (status, __builtin_va_arg_pack ());
11
}
12
 
13
void
14
f (void)
15
{
16
  error (1);
17
}

powered by: WebSVN 2.1.0

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