summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/init-vec-1.c
blob: 9921b16a91ec9600f3ceb1b70c6eae93478920f3 (plain)
1
2
3
4
/* 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" } */