c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / auto-init-5.c
blob9c4de6121826ac8226dc17c666413c45b5d64087
1 /* Verify zero initialization for complex type automatic variables. */
2 /* { dg-do compile } */
3 /* { dg-options "-ftrivial-auto-var-init=zero -fdump-tree-gimple" } */
6 _Complex long double result;
8 _Complex long double foo()
10 _Complex float temp1;
11 _Complex double temp2;
12 _Complex long double temp3;
14 result = temp1 + temp2 + temp3;
15 return result;
18 /* { dg-final { scan-tree-dump "temp1 = .DEFERRED_INIT \\(8, 2, \&\"temp1\"" "gimple" } } */
19 /* { dg-final { scan-tree-dump "temp2 = .DEFERRED_INIT \\(16, 2, \&\"temp2\"" "gimple" } } */
20 /* { dg-final { scan-tree-dump "temp3 = .DEFERRED_INIT \\((16|24|32), 2, \&\"temp3\"" "gimple" } } */