gcc/testsuite/gcc.target/aarch64/auto-init-5.c
raw| 1 | /* Verify zero initialization for complex type automatic variables. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-ftrivial-auto-var-init=zero" } */ |
| 4 | |
| 5 | |
| 6 | _Complex long double result; |
| 7 | |
| 8 | _Complex long double foo() |
| 9 | { |
| 10 | _Complex float temp1; |
| 11 | _Complex double temp2; |
| 12 | _Complex long double temp3; |
| 13 | |
| 14 | result = temp1 + temp2 + temp3; |
| 15 | return result; |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-times "\.word\t0" 14 } } */ |
| 19 |