1 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
2 // { dg-do run { xfail *-*-* } }
10 // This is adapted from an example in C++11 [valarray.sub].
11 // valarray<T> operator[](const valarray<bool>& boolarr) const;
13 const valarray
<char> v0("ab", 2);
14 const bool vb
[] = {false, false, true, true, false, true};
15 (void) v0
[valarray
<bool>(vb
, 6)]; // aborts, mask has more elements than v0