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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr39678.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* PR target/39678 */
2
/* { dg-do compile } */
3
/* { dg-require-effective-target lp64 } */
4
/* { dg-options "-O2" } */
5
 
6
struct X {
7
  char c;
8
  __complex__ float val;
9
};
10
 
11
struct X
12
foo (float *p)
13
{ /* { dg-message "note: the ABI of passing structure with complex float member has changed in GCC 4.4" } */
14
  struct X x;
15
  x.c = -3;
16
  __real x.val = p[0];
17
  __imag x.val = p[1];
18
  return x;
19
}

powered by: WebSVN 2.1.0

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