libstdc++: [_Hashtable] Fix some implementation inconsistencies
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr33723.c
blobbc2a1807fd286e8a5308083958ba399b43c31d13
1 /* PR tree-optimization/33723 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-gimple" } */
5 typedef union
7 struct
9 int f1, f2, f3, f4, f5, f6, f7, f8;
10 long int f9, f10;
11 int f11;
12 } f;
13 char s[4];
14 long int a;
15 } T;
17 void test (T *);
19 void
20 foo1 (void)
22 T t;
23 t = (T) { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
24 test (&t);
27 void
28 bar1 (void)
30 T t = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
31 test (&t);
34 void
35 baz1 (void)
37 T t;
38 t = (const T) { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
39 test (&t);
42 void
43 foo2 (void)
45 T t;
46 t = (T) { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } };
47 test (&t);
50 void
51 bar2 (void)
53 T t = { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } };
54 test (&t);
57 void
58 baz2 (void)
60 T t;
61 t = (const T) { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } };
62 test (&t);
65 void
66 baz3 (void)
68 T t;
69 t = (const T) (T) { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } };
70 test (&t);
73 /* { dg-final { scan-tree-dump-not "t = D" "gimple"} } */