1 /* PR c/98592 - ICE in gimple_canonical_types_compatible_p while formatting
4 { dg-options "-O2 -Wall" }
5 { dg-require-effective-target alloca } */
9 void vlaNx3_to_pia1 (int n
)
13 /* The VLA isn't formatted correctly due to PR 98587. Just verify
14 there is no ICE and a warning is issued. */
15 f (((*(int(*)[4])&a
[1][2]))[3]); // { dg-warning "\\\[-Wuninitialized" }
18 void vlaNxN_to_pia1 (int n
)
23 f (((*(int(*)[4])&a
[1][2]))[3]); // { dg-warning "\\\[-Wuninitialized" }
26 void vlaNxN_to_pvla4xN (int n
)
31 f (((*(int(*)[4][n
])&a
[1][2]))[3][4]); // { dg-warning "\\\[-Wuninitialized" }
34 void vlaN_to_pia2 (int n
)
39 f (((*(int(*)[3][4])&a
[1]))[2][3]); // { dg-warning "\\\[-Wuninitialized" }
42 void vlaN_to_pvlaNx4 (int n
)
47 f (((*(int(*)[n
][4])&a
[1]))[1][3]); // { dg-warning "\\\[-Wuninitialized" }