Debian Codegraph @

gcc/testsuite/gdc.dg/simd19788.d

raw
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 } }
5
6 void test19788()
7 {
8 enum v = __vector(float[4]).init;
9 const(float)[] a = v[];
10 // { dg-error "'__vector\\\(float\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }
11 }