gcc/testsuite/g++.target/i386/pr115351.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -std=c++11" } */ |
| 3 | |
| 4 | struct complex |
| 5 | { |
| 6 | double real; |
| 7 | double imag; |
| 8 | }; |
| 9 | |
| 10 | complex blub(complex z) |
| 11 | { |
| 12 | return { |
| 13 | z.real * z.real - z.imag * z.imag, |
| 14 | 2 * z.real * z.imag |
| 15 | }; |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-not "movq" } } */ |
| 19 | /* { dg-final { scan-assembler-not "xchg" } } */ |