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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [20021023-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* This testcase ICEd on x86-64 because LABEL_REF + small const was not
2
   considered as local_symbolic_operand.  */
3
/* { dg-do compile { target fpic } } */
4
/* { dg-options "-O2 -fpic" } */
5
 
6
typedef __builtin_va_list va_list;
7
 
8
static unsigned int
9
foo (void *a, float b, const char *c, va_list d, void *e)
10
{
11
  return -1;
12
}
13
 
14
unsigned int
15
bar (void *a, float b, const char *c, ...)
16
{
17
  va_list args;
18
  unsigned int d;
19
 
20
  __builtin_va_start (args, c);
21
  d = foo (a, b, c, args, a);
22
  __builtin_va_end (args);
23
  return d;
24
}

powered by: WebSVN 2.1.0

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