1 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
2 // { dg-do run { xfail *-*-* } }
11 // This is adapted from an example in C++11 [valarray.sub].
13 valarray
<char> v0("abcdef", 6);
14 valarray
<char> v1("ABCDEF", 6);
15 const bool vb
[] = {false, false, true, true, false, true};
16 const mask_array
<char> m0
= v0
[valarray
<bool>(vb
, 6)];
17 const mask_array
<char> m1
= v1
[valarray
<bool>(vb
, 5)];
18 m0
= m1
; // aborts, m0 has more elements than m1