blob: 3fe24562ebb37e4f4c90f3fa1baf3c7e85220e71 [file] [log] [blame]
/* Verify pattern initialization for complex type automatic variables. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=pattern -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, 1, 0\\)" "gimple" } } */
/* { dg-final { scan-tree-dump "temp2 = .DEFERRED_INIT \\(16, 1, 0\\)" "gimple" } } */
/* { dg-final { scan-tree-dump "temp3 = .DEFERRED_INIT \\((16|24|32), 1, 0\\)" "gimple" } } */