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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr39082-1.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* PR target/39082 */
2
/* { dg-do compile } */
3
/* { dg-require-effective-target lp64 } */
4
/* { dg-options "-O2" } */
5
 
6
union un
7
{
8
  long double x;
9
  int i;
10
};
11
 
12
extern int bar1 (union un);
13
extern union un bar2 (int);
14
 
15
int
16
foo1 (union un u)
17
{
18
  bar1 (u);
19
  return u.i;
20
}
21
 
22
int
23
foo2 (void)
24
{
25
  union un u;
26
  u.i = 1;
27
  return foo1 (u) + bar1 (u);
28
}
29
 
30
int
31
foo3 (int x)
32
{
33
  union un u = bar2 (x); /* { dg-message "note: The ABI of passing union with long double has changed in GCC 4.4" } */
34
  return u.i;
35
}

powered by: WebSVN 2.1.0

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