OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / pr39678.c
1 /* 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 }