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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr8081.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
 
3
extern void abort (void);
4
int
5
main (int argc, char **argv)
6
{
7
  int size = 10;
8
  typedef struct
9
    {
10
      char val[size];
11
    }
12
  block;
13
  block a, b;
14
  block __attribute__((noinline))
15
  retframe_block ()
16
    {
17
      return *(block *) &b;
18
    }
19
  b.val[0] = 1;
20
  b.val[9] = 2;
21
  a=retframe_block ();
22
  if (a.val[0] != 1
23
      || a.val[9] != 2)
24
    abort ();
25
  return 0;
26
}

powered by: WebSVN 2.1.0

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