* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr14841.c
blobcc6e0158b67dc1dcfe2916c23a1c029d3e3c928b
1 /* PR tree-optimization/14841
2 Make sure that we can fold a possible nested reference into a
3 constant aggregate. */
5 /* { dg-do link } */
6 /* { dg-options "-O" } */
8 struct car {
9 int speed;
10 int tire_pressure[4];
13 static const struct car cars[] = {
14 { 75, { 10, 20, 30, 40 } },
15 { 35, { 12, 34, 56, 78 } },
16 { 40, { 19, 28, 37, 46 } }
19 extern void link_error (void);
21 void
22 foo (void)
24 if (cars[1].tire_pressure[2] != 56)
25 link_error ();
28 int main () { return 0; }