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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020206-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
struct A {
2
  unsigned int a, b, c;
3
};
4
 
5
extern void abort (void);
6
extern void exit (int);
7
 
8
struct A bar (void)
9
{
10
  return (struct A) { 176, 52, 31 };
11
}
12
 
13
void baz (struct A *a)
14
{
15
  if (a->a != 176 || a->b != 52 || a->c != 31)
16
    abort ();
17
}
18
 
19
int main ()
20
{
21
  struct A d;
22
 
23
  d = ({ ({ bar (); }); });
24
  baz (&d);
25
  exit (0);
26
}

powered by: WebSVN 2.1.0

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