Revert "tree-optimization/112281 - loop distribution and zero dependence distances"
[official-gcc.git] / libstdc++-v3 / testsuite / 26_numerics / valarray / mask-1_neg.cc
blob7ef11736d96251eb1d33da1487e5eb087d1e2ae4
1 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
2 // { dg-do run { xfail *-*-* } }
4 #include <valarray>
6 int main()
8 using std::valarray;
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