aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/init-vec-1.c
blob: 68243cd302f812ebf8293957c1452ff1e945e4e0 (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|cannot convert" } */