summaryrefslogtreecommitdiffstats
path: root/libcxx/test/numerics/numarray/template.slice.array
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/numerics/numarray/template.slice.array')
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/default.fail.cpp22
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.assign/slice_array.pass.cpp55
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.assign/valarray.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/addition.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/and.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/divide.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/modulo.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/multiply.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/or.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/shift_left.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/shift_right.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/subtraction.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/xor.pass.cpp43
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/slice.arr.fill/assign_value.pass.cpp41
-rw-r--r--libcxx/test/numerics/numarray/template.slice.array/types.pass.cpp24
15 files changed, 0 insertions, 615 deletions
diff --git a/libcxx/test/numerics/numarray/template.slice.array/default.fail.cpp b/libcxx/test/numerics/numarray/template.slice.array/default.fail.cpp
deleted file mode 100644
index 3b522f0e12c..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/default.fail.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// slice_array() = delete;
-
-#include <valarray>
-#include <type_traits>
-
-int main()
-{
- std::slice_array<int> s;
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.assign/slice_array.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.assign/slice_array.pass.cpp
deleted file mode 100644
index 72275e01e1b..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.assign/slice_array.pass.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// const slice_array& operator=(const slice_array& sa) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- {
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- const std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] = v2[std::slice(2, 5, 2)];
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == -3);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == -5);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == -7);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == -9);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == -11);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
- }
- // Test return value of assignment.
- {
- int a1[] = {0, 1, 2};
- int a2[] = {3, 4, 3};
- std::valarray<int> v1(a1, 3);
- std::slice_array<int> s1 = v1[std::slice(1, 1, 1)];
- std::slice_array<int> s2 = v1[std::slice(0, 1, 1)];
- std::slice_array<int> const & s3 = (s1 = s2);
- assert(&s1 == &s3);
- }
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.assign/valarray.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.assign/valarray.pass.cpp
deleted file mode 100644
index d3857863f91..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.assign/valarray.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator=(const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {-1, -2, -3, -4, -5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] = v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == -1);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == -2);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == -3);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == -4);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == -5);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/addition.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/addition.pass.cpp
deleted file mode 100644
index 8b5bf75d414..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/addition.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator+= (const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {-1, -2, -3, -4, -5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] += v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == 0);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == 2);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == 4);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == 6);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == 8);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/and.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/and.pass.cpp
deleted file mode 100644
index dbcae84771b..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/and.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator&= (const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {1, 2, 3, 4, 5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] &= v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == 1);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == 0);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == 3);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == 0);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == 5);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/divide.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/divide.pass.cpp
deleted file mode 100644
index 71785015ba3..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/divide.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator/= (const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {-1, -2, -3, -4, -5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] /= v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == -1);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == -2);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == -2);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == -2);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == -2);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/modulo.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/modulo.pass.cpp
deleted file mode 100644
index e08fb51a8c2..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/modulo.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator%= (const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {-1, -2, -3, -4, -5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] %= v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == 0);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == 0);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == 1);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == 2);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == 3);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/multiply.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/multiply.pass.cpp
deleted file mode 100644
index 257c0316420..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/multiply.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator*= (const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {-1, -2, -3, -4, -5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] *= v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == -1);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == -8);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == -21);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == -40);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == -65);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/or.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/or.pass.cpp
deleted file mode 100644
index 0826708a36f..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/or.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator|= (const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {1, 2, 3, 4, 5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] |= v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == 1);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == 6);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == 7);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == 14);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == 13);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/shift_left.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/shift_left.pass.cpp
deleted file mode 100644
index 84360d8c940..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/shift_left.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator<<=(const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {1, 2, 3, 4, 5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] <<= v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == 2);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == 16);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == 56);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == 160);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == 416);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/shift_right.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/shift_right.pass.cpp
deleted file mode 100644
index c39cd53e916..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/shift_right.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator>>=(const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {1, 2, 3, 4, 5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] >>= v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == 0);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == 1);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == 0);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == 0);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == 0);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/subtraction.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/subtraction.pass.cpp
deleted file mode 100644
index e6419fb2cd1..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/subtraction.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator-= (const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {-1, -2, -3, -4, -5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] -= v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == 2);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == 6);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == 10);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == 14);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == 18);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/xor.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/xor.pass.cpp
deleted file mode 100644
index 294106ed75a..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/xor.pass.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator^= (const valarray<value_type>& v) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int a2[] = {1, 2, 3, 4, 5};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- std::valarray<int> v2(a2, sizeof(a2)/sizeof(a2[0]));
- v1[std::slice(1, 5, 3)] ^= v2;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == 0);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == 6);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == 4);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == 14);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == 8);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.fill/assign_value.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/slice.arr.fill/assign_value.pass.cpp
deleted file mode 100644
index 4f7af4baf6f..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/slice.arr.fill/assign_value.pass.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T> class slice_array
-
-// void operator=(const value_type& x) const;
-
-#include <valarray>
-#include <cassert>
-
-int main()
-{
- int a1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
- v1[std::slice(1, 5, 3)] = 20;
- assert(v1.size() == 16);
- assert(v1[ 0] == 0);
- assert(v1[ 1] == 20);
- assert(v1[ 2] == 2);
- assert(v1[ 3] == 3);
- assert(v1[ 4] == 20);
- assert(v1[ 5] == 5);
- assert(v1[ 6] == 6);
- assert(v1[ 7] == 20);
- assert(v1[ 8] == 8);
- assert(v1[ 9] == 9);
- assert(v1[10] == 20);
- assert(v1[11] == 11);
- assert(v1[12] == 12);
- assert(v1[13] == 20);
- assert(v1[14] == 14);
- assert(v1[15] == 15);
-}
diff --git a/libcxx/test/numerics/numarray/template.slice.array/types.pass.cpp b/libcxx/test/numerics/numarray/template.slice.array/types.pass.cpp
deleted file mode 100644
index 8c40b154f4d..00000000000
--- a/libcxx/test/numerics/numarray/template.slice.array/types.pass.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <valarray>
-
-// template <class T>
-// class slice_array
-// {
-// public:
-// typedef T value_type;
-
-#include <valarray>
-#include <type_traits>
-
-int main()
-{
- static_assert((std::is_same<std::slice_array<int>::value_type, int>::value), "");
-}
OpenPOWER on IntegriCloud