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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [20050105-2.c] - Blame information for rev 750

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR tree-optimization/18828 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
 
5
#include <stdarg.h>
6
 
7
extern void abort (void);
8
 
9
void foo (int x, ...)
10
{
11
  va_list ap;
12
  if (x != 21)
13
    abort ();
14
  va_start (ap, x);
15
  va_end (ap);
16
}
17
 
18
void bar (int x, ...)
19
{
20
  va_list ap;
21
  x++;
22
  va_start (ap, x);
23
  va_end (ap);
24
}
25
 
26
void baz (int x, ...)
27
{
28
  va_list ap;
29
  x = 0;
30
  va_start (ap, x);
31
  va_end (ap);
32
}

powered by: WebSVN 2.1.0

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