c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / auto-init-6.c
blob6a406447f3d99e7e05aa909f8ca200392b2e7b4b
1 /* Verify pattern initialization for complex type automatic variables. */
2 /* { dg-do compile } */
3 /* { dg-options "-ftrivial-auto-var-init=pattern -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, 1, \&\"temp1\"" "gimple" } } */
19 /* { dg-final { scan-tree-dump "temp2 = .DEFERRED_INIT \\(16, 1, \&\"temp2\"" "gimple" } } */
20 /* { dg-final { scan-tree-dump "temp3 = .DEFERRED_INIT \\((16|24|32), 1, \&\"temp3\"" "gimple" } } */