forked from OSchip/llvm-project
[libcxx] [test] Strip trailing whitespace. NFC, no code review.
llvm-svn: 291322
This commit is contained in:
parent
e56e039e4b
commit
12195f1f03
|
@ -132,10 +132,10 @@ int main()
|
||||||
static_assert ( std::rbegin(c) != std::rend(c), "");
|
static_assert ( std::rbegin(c) != std::rend(c), "");
|
||||||
static_assert ( std::cbegin(c) != std::cend(c), "");
|
static_assert ( std::cbegin(c) != std::cend(c), "");
|
||||||
static_assert ( std::crbegin(c) != std::crend(c), "");
|
static_assert ( std::crbegin(c) != std::crend(c), "");
|
||||||
|
|
||||||
static_assert ( *c.begin() == 0, "");
|
static_assert ( *c.begin() == 0, "");
|
||||||
static_assert ( *c.rbegin() == 4, "");
|
static_assert ( *c.rbegin() == 4, "");
|
||||||
|
|
||||||
static_assert ( *std::begin(c) == 0, "" );
|
static_assert ( *std::begin(c) == 0, "" );
|
||||||
static_assert ( *std::cbegin(c) == 0, "" );
|
static_assert ( *std::cbegin(c) == 0, "" );
|
||||||
static_assert ( *std::rbegin(c) == 4, "" );
|
static_assert ( *std::rbegin(c) == 4, "" );
|
||||||
|
|
|
@ -179,10 +179,10 @@ int main(){
|
||||||
static_assert ( std::rbegin(c) != std::rend(c), "");
|
static_assert ( std::rbegin(c) != std::rend(c), "");
|
||||||
static_assert ( std::cbegin(c) != std::cend(c), "");
|
static_assert ( std::cbegin(c) != std::cend(c), "");
|
||||||
static_assert ( std::crbegin(c) != std::crend(c), "");
|
static_assert ( std::crbegin(c) != std::crend(c), "");
|
||||||
|
|
||||||
static_assert ( *c.begin() == 0, "");
|
static_assert ( *c.begin() == 0, "");
|
||||||
static_assert ( *c.rbegin() == 4, "");
|
static_assert ( *c.rbegin() == 4, "");
|
||||||
|
|
||||||
static_assert ( *std::begin(c) == 0, "" );
|
static_assert ( *std::begin(c) == 0, "" );
|
||||||
static_assert ( *std::cbegin(c) == 0, "" );
|
static_assert ( *std::cbegin(c) == 0, "" );
|
||||||
static_assert ( *std::rbegin(c) == 4, "" );
|
static_assert ( *std::rbegin(c) == 4, "" );
|
||||||
|
@ -191,7 +191,7 @@ int main(){
|
||||||
|
|
||||||
{
|
{
|
||||||
static constexpr const int c[] = {0,1,2,3,4};
|
static constexpr const int c[] = {0,1,2,3,4};
|
||||||
|
|
||||||
static_assert ( *std::begin(c) == 0, "" );
|
static_assert ( *std::begin(c) == 0, "" );
|
||||||
static_assert ( *std::cbegin(c) == 0, "" );
|
static_assert ( *std::cbegin(c) == 0, "" );
|
||||||
static_assert ( *std::rbegin(c) == 4, "" );
|
static_assert ( *std::rbegin(c) == 4, "" );
|
||||||
|
|
|
@ -38,7 +38,7 @@ int main()
|
||||||
us1 %= std::chrono::milliseconds(3);
|
us1 %= std::chrono::milliseconds(3);
|
||||||
assert(us1.count() == 2);
|
assert(us1.count() == 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if TEST_STD_VER > 14
|
#if TEST_STD_VER > 14
|
||||||
static_assert(test_constexpr(), "");
|
static_assert(test_constexpr(), "");
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -34,7 +34,7 @@ int main()
|
||||||
us %= 3;
|
us %= 3;
|
||||||
assert(us.count() == 2);
|
assert(us.count() == 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if TEST_STD_VER > 14
|
#if TEST_STD_VER > 14
|
||||||
static_assert(test_constexpr(), "");
|
static_assert(test_constexpr(), "");
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -34,7 +34,7 @@ int main()
|
||||||
ns *= 5;
|
ns *= 5;
|
||||||
assert(ns.count() == 15);
|
assert(ns.count() == 15);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if TEST_STD_VER > 14
|
#if TEST_STD_VER > 14
|
||||||
static_assert(test_constexpr(), "");
|
static_assert(test_constexpr(), "");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue