| 1 |
/* Verify zero initialization for complex type automatic variables. */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-ftrivial-auto-var-init=zero -fno-asynchronous-unwind-tables" } */ |
| 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 "\\.long\t0" 14 { target { ! ia32 } } } } */ |
| 19 |
/* { dg-final { scan-assembler-times "\\.long\t0" 12 { target ia32 } } } */ |