2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr39678.c
blob0548466d6deadd16953ea9e91daaff20ada9621e
1 /* PR target/39678 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-options "-O2" } */
6 struct X {
7 char c;
8 __complex__ float val;
9 };
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;