19 lines
403 B
C
19 lines
403 B
C
/* Verify zero initialization for complex type automatic variables. */
|
|
/* { dg-do compile } */
|
|
/* { dg-options "-ftrivial-auto-var-init=zero" } */
|
|
|
|
|
|
_Complex long double result;
|
|
|
|
_Complex long double foo()
|
|
{
|
|
_Complex float temp1;
|
|
_Complex double temp2;
|
|
_Complex long double temp3;
|
|
|
|
result = temp1 + temp2 + temp3;
|
|
return result;
|
|
}
|
|
|
|
/* { dg-final { scan-assembler-times "\.word\t0" 14 } } */
|
|
|