c++: fix explicit/copy problem [PR109247]
[official-gcc.git] / gcc / testsuite / gdc.dg / simd19788.d
blob74ab0087a0e7e7c4566ea892678c1ddb7956dec5
1 // https://issues.dlang.org/show_bug.cgi?id=19788
2 // { dg-additional-options "-mavx" { target avx_runtime } }
3 // { dg-do compile { target { avx_runtime || vect_sizes_16B_8B } } }
4 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
6 void test19788()
8 enum v = __vector(float[4]).init;
9 const(float)[] a = v[];
10 // { dg-error "'__vector\\\(float\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }