summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2019-03-15 15:00:41 +0000
committerMarshall Clow <mclow.lists@gmail.com>2019-03-15 15:00:41 +0000
commit2fa901c4716fb306d921da163631bc235b3beca8 (patch)
treedf3500c73fcc6f36a5c5452e8ed080ff89dcd751 /libcxx/test/std/containers
parent2c3ab665393c725c39470470b719ecac63de23a3 (diff)
downloadbcm5719-llvm-2fa901c4716fb306d921da163631bc235b3beca8.tar.gz
bcm5719-llvm-2fa901c4716fb306d921da163631bc235b3beca8.zip
Update a deque test with more assertions. NFC
llvm-svn: 356266
Diffstat (limited to 'libcxx/test/std/containers')
-rw-r--r--libcxx/test/std/containers/sequences/array/indexing.pass.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/test/std/containers/sequences/array/indexing.pass.cpp b/libcxx/test/std/containers/sequences/array/indexing.pass.cpp
index 7bc3360a6fd..0df672d8b01 100644
--- a/libcxx/test/std/containers/sequences/array/indexing.pass.cpp
+++ b/libcxx/test/std/containers/sequences/array/indexing.pass.cpp
@@ -64,11 +64,11 @@ int main(int, char**)
typedef double T;
typedef std::array<T, 0> C;
C c = {};
+ C const& cc = c;
LIBCPP_ASSERT_NOEXCEPT(c[0]);
+ LIBCPP_ASSERT_NOEXCEPT(cc[0]);
ASSERT_SAME_TYPE(C::reference, decltype(c[0]));
- C const& cc = c;
- static_assert((std::is_same<decltype(c[0]), T &>::value), "");
- static_assert((std::is_same<decltype(cc[0]), const T &>::value), "");
+ ASSERT_SAME_TYPE(C::const_reference, decltype(cc[0]));
if (c.size() > (0)) { // always false
C::reference r1 = c[0];
C::const_reference r2 = cc[0];
@@ -80,11 +80,11 @@ int main(int, char**)
typedef double T;
typedef std::array<const T, 0> C;
C c = {{}};
+ C const& cc = c;
LIBCPP_ASSERT_NOEXCEPT(c[0]);
+ LIBCPP_ASSERT_NOEXCEPT(cc[0]);
ASSERT_SAME_TYPE(C::reference, decltype(c[0]));
- C const& cc = c;
- static_assert((std::is_same<decltype(c[0]), const T &>::value), "");
- static_assert((std::is_same<decltype(cc[0]), const T &>::value), "");
+ ASSERT_SAME_TYPE(C::const_reference, decltype(cc[0]));
if (c.size() > (0)) { // always false
C::reference r1 = c[0];
C::const_reference r2 = cc[0];
OpenPOWER on IntegriCloud