mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 10:07:41 +08:00
[libcxx] [test] Make files consistently end with newlines, NFC.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@309465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -164,4 +164,4 @@ void test_failing() {
|
|||||||
int main() {
|
int main() {
|
||||||
test_passing();
|
test_passing();
|
||||||
test_failing();
|
test_failing();
|
||||||
}
|
}
|
||||||
|
@@ -27,4 +27,4 @@ int main()
|
|||||||
std::list<int> v2(3);
|
std::list<int> v2(3);
|
||||||
v1.insert(v2.begin(), 4);
|
v1.insert(v2.begin(), 4);
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
|
@@ -71,4 +71,4 @@ int main() {
|
|||||||
assert(false);
|
assert(false);
|
||||||
} catch (int) {}
|
} catch (int) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -134,4 +134,4 @@ int main() {
|
|||||||
LazyNotTest();
|
LazyNotTest();
|
||||||
LazyAndTest();
|
LazyAndTest();
|
||||||
LazyOrTest();
|
LazyOrTest();
|
||||||
}
|
}
|
||||||
|
@@ -213,4 +213,4 @@ int main() {
|
|||||||
TestCase<ArgType volatile>::run();
|
TestCase<ArgType volatile>::run();
|
||||||
TestCase<ArgType const volatile>::run();
|
TestCase<ArgType const volatile>::run();
|
||||||
TestCase<ArgType*>::run();
|
TestCase<ArgType*>::run();
|
||||||
}
|
}
|
||||||
|
@@ -68,4 +68,4 @@ int main() {
|
|||||||
std::tuple<int const&> t4(std::allocator_arg, alloc, cr);
|
std::tuple<int const&> t4(std::allocator_arg, alloc, cr);
|
||||||
assert(&std::get<0>(t4) == &x);
|
assert(&std::get<0>(t4) == &x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -189,4 +189,4 @@ int main()
|
|||||||
assert(r->second.get() == 5); // value
|
assert(r->second.get() == 5); // value
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -24,4 +24,4 @@ int main() {
|
|||||||
m->do_allocate(0, 0); // expected-error{{'do_allocate' is a protected member}}
|
m->do_allocate(0, 0); // expected-error{{'do_allocate' is a protected member}}
|
||||||
m->do_deallocate(nullptr, 0, 0); // expected-error{{'do_deallocate' is a protected member}}
|
m->do_deallocate(nullptr, 0, 0); // expected-error{{'do_deallocate' is a protected member}}
|
||||||
m->do_is_equal(*m); // expected-error{{'do_is_equal' is a protected member}}
|
m->do_is_equal(*m); // expected-error{{'do_is_equal' is a protected member}}
|
||||||
}
|
}
|
||||||
|
@@ -29,4 +29,4 @@ int main () {
|
|||||||
assert ( sv1.size() == s.size());
|
assert ( sv1.size() == s.size());
|
||||||
assert ( sv1.data() == s.data());
|
assert ( sv1.data() == s.data());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -31,4 +31,4 @@ int main() {
|
|||||||
static_assert(b == std::align_val_t(32), "");
|
static_assert(b == std::align_val_t(32), "");
|
||||||
static_assert(static_cast<std::size_t>(c) == (std::size_t)-1, "");
|
static_assert(static_cast<std::size_t>(c) == (std::size_t)-1, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -29,4 +29,4 @@ int main () {
|
|||||||
assert ( sv1.size() == s.size());
|
assert ( sv1.size() == s.size());
|
||||||
assert ( sv1.data() == s.data());
|
assert ( sv1.data() == s.data());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -36,4 +36,4 @@ int main() {
|
|||||||
#if defined(__cpp_lib_invoke)
|
#if defined(__cpp_lib_invoke)
|
||||||
assert(std::invoke(foo, 101) == 42);
|
assert(std::invoke(foo, 101) == 42);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -112,4 +112,4 @@ int main()
|
|||||||
{
|
{
|
||||||
test_counted();
|
test_counted();
|
||||||
test_value_initialized();
|
test_value_initialized();
|
||||||
}
|
}
|
||||||
|
@@ -111,4 +111,4 @@ void test_counted()
|
|||||||
int main() {
|
int main() {
|
||||||
test_counted();
|
test_counted();
|
||||||
test_ctor_throws();
|
test_ctor_throws();
|
||||||
}
|
}
|
||||||
|
@@ -114,4 +114,4 @@ int main()
|
|||||||
{
|
{
|
||||||
test_counted();
|
test_counted();
|
||||||
test_ctor_throws();
|
test_ctor_throws();
|
||||||
}
|
}
|
||||||
|
@@ -39,4 +39,4 @@ template <class Tp, class ...Args>
|
|||||||
constexpr bool test_convertible()
|
constexpr bool test_convertible()
|
||||||
{ return detail::test_convertible_imp<Tp, Args...>(0); }
|
{ return detail::test_convertible_imp<Tp, Args...>(0); }
|
||||||
|
|
||||||
#endif // SUPPORT_TEST_CONVERTIBLE_HPP
|
#endif // SUPPORT_TEST_CONVERTIBLE_HPP
|
||||||
|
Reference in New Issue
Block a user