OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr39903-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR target/39903 */
2
/* { dg-do run } */
3
/* { dg-options "-Wno-psabi" } */
4
 
5
struct X {
6
  double d;
7
  double b[];
8
};
9
 
10
struct X __attribute__((noinline))
11
foo (double d)
12
{
13
  struct X x;
14
  x.d = d;
15
  return x;
16
}
17
extern void abort (void);
18
int main()
19
{
20
  struct X x = foo(3.0);
21
  if (x.d != 3.0)
22
    abort ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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