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