1 // https://issues.dlang.org/show_bug.cgi?id=19630
2 // { dg-additional-options "-mavx" { target avx_runtime } }
3 // { dg-do compile { target { avx_runtime || vect_sizes_16B_8B } } }
6 enum fail19630a
= int4
.init
[1..2];
7 // { dg-error "'__vector\\\(int\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }
8 enum fail19630e
= int4(0)[1..2];
9 // { dg-error "'__vector\\\(int\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }
11 enum int4 v19630a
= int4
.init
;
12 enum slice19630a
= v19630a
[1..2];
13 // { dg-error "'__vector\\\(int\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }
15 enum int4 v19630e
= int4(0);
16 enum slice19630e
= v19630e
[1..2];
17 // { dg-error "'__vector\\\(int\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }