blob: 9c4de6121826ac8226dc17c666413c45b5d64087 [file] [log] [blame]
/* Verify zero initialization for complex type automatic variables. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=zero -fdump-tree-gimple" } */
_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-tree-dump "temp1 = .DEFERRED_INIT \\(8, 2, \&\"temp1\"" "gimple" } } */
/* { dg-final { scan-tree-dump "temp2 = .DEFERRED_INIT \\(16, 2, \&\"temp2\"" "gimple" } } */
/* { dg-final { scan-tree-dump "temp3 = .DEFERRED_INIT \\((16|24|32), 2, \&\"temp3\"" "gimple" } } */