xfail all scan-tree-dump-times checks on hppa*64*-*-* in sra-17.c and sra-18.c
[official-gcc.git] / libstdc++-v3 / testsuite / 26_numerics / valarray / mask-5_neg.cc
blob8e708903b000bedd0a24c722d28554b936ea36aa
1 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
2 // { dg-do run { xfail *-*-* } }
4 #include <valarray>
6 int main()
8 using std::valarray;
9 using std::mask_array;
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