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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr45843.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR target/45843
2
// { dg-do run }
3
 
4
#include 
5
 
6
extern "C" void abort ();
7
struct S { struct T { } a[14]; char b; };
8
struct S arg, s;
9
 
10
void
11
foo (int z, ...)
12
{
13
  char c;
14
  va_list ap;
15
  va_start (ap, z);
16
  c = 'a';
17
  arg = va_arg (ap, struct S);
18
  if (c != 'a')
19
    abort ();
20
  va_end (ap);
21
}
22
 
23
int
24
main ()
25
{
26
  foo (1, s);
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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