rt_gccstream/gcc/testsuite/gcc.dg/init-vec-1.c

5 lines
208 B
C

/* Don't ICE or emit spurious errors when init a vector with a scalar. */
/* { dg-do compile } */
typedef float v2sf __attribute__ ((vector_size (8)));
v2sf a = 0.0; /* { dg-error "incompatible types" } */