1 /* Verify that it is possible to define variables of composite types
2 containing vector types. We used to crash handling the
3 initializer of automatic ones. */
5 /* { dg-do compile } */
6 /* { dg-require-effective-target powerpc_altivec_ok } */
7 /* { dg-options "-maltivec -mabi=altivec" } */
11 typedef vector int vt;
12 typedef struct { vt x; int y[sizeof(vt) / sizeof (int)]; } st;
13 #define INIT { 1, 2, 3, 4 }
19 st s = { INIT, INIT };
24 st s = { INIT, INIT };