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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr39903-2.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR target/39903 */
2
/* { dg-do run } */
3
/* { dg-options "-Wno-psabi" } */
4
 
5
struct X {
6
  float d;
7
  float b[];
8
};
9
 
10
struct X __attribute__((noinline))
11
foo (float 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.