gcc/testsuite/gcc.target/i386/nrv1.c
raw| 1 | /* Verify that gimple-level NRV is occurring even for SSA_NAMEs. *./ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O -fdump-tree-optimized" } */ |
| 4 | /* { dg-require-effective-target ia32 } */ |
| 5 | |
| 6 | _Complex double foo (_Complex double x) |
| 7 | { |
| 8 | return __builtin_cexp (x); |
| 9 | } |
| 10 | |
| 11 | /* { dg-final { scan-tree-dump-times "return slot optimization" 1 "optimized" } } */ |