/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/c.math/ |
D | cmath.pass.cpp | 20 static_assert((std::is_same<decltype(std::abs((float)0)), float>::value), ""); in test_abs() 21 static_assert((std::is_same<decltype(std::abs((double)0)), double>::value), ""); in test_abs() 22 static_assert((std::is_same<decltype(std::abs((long double)0)), long double>::value), ""); in test_abs() 23 assert(std::abs(-1.) == 1); in test_abs() 28 static_assert((std::is_same<decltype(std::acos((float)0)), float>::value), ""); in test_acos() 29 static_assert((std::is_same<decltype(std::acos((bool)0)), double>::value), ""); in test_acos() 30 static_assert((std::is_same<decltype(std::acos((unsigned short)0)), double>::value), ""); in test_acos() 31 static_assert((std::is_same<decltype(std::acos((int)0)), double>::value), ""); in test_acos() 32 static_assert((std::is_same<decltype(std::acos((unsigned int)0)), double>::value), ""); in test_acos() 33 static_assert((std::is_same<decltype(std::acos((long)0)), double>::value), ""); in test_acos() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/ |
D | cases.h | 20 std::complex<double> x[] = 22 std::complex<double>( 1.e-6, 1.e-6), 23 std::complex<double>(-1.e-6, 1.e-6), 24 std::complex<double>(-1.e-6, -1.e-6), 25 std::complex<double>( 1.e-6, -1.e-6), 27 std::complex<double>( 1.e+6, 1.e-6), 28 std::complex<double>(-1.e+6, 1.e-6), 29 std::complex<double>(-1.e+6, -1.e-6), 30 std::complex<double>( 1.e+6, -1.e-6), 32 std::complex<double>( 1.e-6, 1.e+6), [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/atomics/atomics.types.generic/ |
D | cstdint_typedefs.pass.cpp | 43 …static_assert((std::is_same<std::atomic< std::int_least8_t>, std::atomic_int_least8_t>::value),… in main() 44 …static_assert((std::is_same<std::atomic< std::uint_least8_t>, std::atomic_uint_least8_t>::value),… in main() 45 …static_assert((std::is_same<std::atomic< std::int_least16_t>, std::atomic_int_least16_t>::value),… in main() 46 …static_assert((std::is_same<std::atomic<std::uint_least16_t>, std::atomic_uint_least16_t>::value),… in main() 47 …static_assert((std::is_same<std::atomic< std::int_least32_t>, std::atomic_int_least32_t>::value),… in main() 48 …static_assert((std::is_same<std::atomic<std::uint_least32_t>, std::atomic_uint_least32_t>::value),… in main() 49 …static_assert((std::is_same<std::atomic< std::int_least64_t>, std::atomic_int_least64_t>::value),… in main() 50 …static_assert((std::is_same<std::atomic<std::uint_least64_t>, std::atomic_uint_least64_t>::value),… in main() 52 …static_assert((std::is_same<std::atomic< std::int_fast8_t>, std::atomic_int_fast8_t>::value), "… in main() 53 …static_assert((std::is_same<std::atomic< std::uint_fast8_t>, std::atomic_uint_fast8_t>::value), "… in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.heap.operations/is.heap/ |
D | is_heap_comp.pass.cpp | 24 assert(std::is_heap(i1, i1, std::greater<int>())); in test() 25 …assert(std::is_heap(i1, i1+1, std::greater<int>()) == (std::is_heap_until(i1, i1+1, std::greater<i… in test() 28 …assert(std::is_heap(i1, i1+2, std::greater<int>()) == (std::is_heap_until(i1, i1+2, std::greater<i… in test() 29 …assert(std::is_heap(i2, i2+2, std::greater<int>()) == (std::is_heap_until(i2, i2+2, std::greater<i… in test() 30 …assert(std::is_heap(i3, i3+2, std::greater<int>()) == (std::is_heap_until(i3, i3+2, std::greater<i… in test() 38 …assert(std::is_heap(i4, i4+3, std::greater<int>()) == (std::is_heap_until(i4, i4+3, std::greater<i… in test() 39 …assert(std::is_heap(i5, i5+3, std::greater<int>()) == (std::is_heap_until(i5, i5+3, std::greater<i… in test() 40 …assert(std::is_heap(i6, i6+3, std::greater<int>()) == (std::is_heap_until(i6, i6+3, std::greater<i… in test() 41 …assert(std::is_heap(i7, i7+3, std::greater<int>()) == (std::is_heap_until(i7, i7+3, std::greater<i… in test() 42 …assert(std::is_heap(i8, i8+3, std::greater<int>()) == (std::is_heap_until(i8, i8+3, std::greater<i… in test() [all …]
|
D | is_heap_until_comp.pass.cpp | 24 assert(std::is_heap_until(i1, i1, std::greater<int>()) == i1); in test() 25 assert(std::is_heap_until(i1, i1+1, std::greater<int>()) == i1+1); in test() 28 assert(std::is_heap_until(i1, i1+2, std::greater<int>()) == i1+2); in test() 29 assert(std::is_heap_until(i2, i2+2, std::greater<int>()) == i2+2); in test() 30 assert(std::is_heap_until(i3, i3+2, std::greater<int>()) == i3+1); in test() 38 assert(std::is_heap_until(i4, i4+3, std::greater<int>()) == i4+3); in test() 39 assert(std::is_heap_until(i5, i5+3, std::greater<int>()) == i5+3); in test() 40 assert(std::is_heap_until(i6, i6+3, std::greater<int>()) == i6+3); in test() 41 assert(std::is_heap_until(i7, i7+3, std::greater<int>()) == i7+3); in test() 42 assert(std::is_heap_until(i8, i8+3, std::greater<int>()) == i8+1); in test() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.const/re.err/ |
D | error_type.pass.cpp | 40 assert(std::regex_constants::error_collate != 0); in main() 41 assert(std::regex_constants::error_ctype != 0); in main() 42 assert(std::regex_constants::error_escape != 0); in main() 43 assert(std::regex_constants::error_backref != 0); in main() 44 assert(std::regex_constants::error_brack != 0); in main() 45 assert(std::regex_constants::error_paren != 0); in main() 46 assert(std::regex_constants::error_brace != 0); in main() 47 assert(std::regex_constants::error_badbrace != 0); in main() 48 assert(std::regex_constants::error_range != 0); in main() 49 assert(std::regex_constants::error_space != 0); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multimap/ |
D | types.pass.cpp | 40 static_assert((std::is_same<std::multimap<int, double>::key_type, int>::value), ""); in main() 41 static_assert((std::is_same<std::multimap<int, double>::mapped_type, double>::value), ""); in main() 42 …static_assert((std::is_same<std::multimap<int, double>::value_type, std::pair<const int, double> >… in main() 43 …static_assert((std::is_same<std::multimap<int, double>::key_compare, std::less<int> >::value), ""); in main() 44 …static_assert((std::is_same<std::multimap<int, double>::allocator_type, std::allocator<std::pair<c… in main() 45 …static_assert((std::is_same<std::multimap<int, double>::reference, std::pair<const int, double>&>:… in main() 46 …static_assert((std::is_same<std::multimap<int, double>::const_reference, const std::pair<const int… in main() 47 …static_assert((std::is_same<std::multimap<int, double>::pointer, std::pair<const int, double>*>::v… in main() 48 …static_assert((std::is_same<std::multimap<int, double>::const_pointer, const std::pair<const int, … in main() 49 static_assert((std::is_same<std::multimap<int, double>::size_type, std::size_t>::value), ""); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/ |
D | types.pass.cpp | 40 static_assert((std::is_same<std::map<int, double>::key_type, int>::value), ""); in main() 41 static_assert((std::is_same<std::map<int, double>::mapped_type, double>::value), ""); in main() 42 …static_assert((std::is_same<std::map<int, double>::value_type, std::pair<const int, double> >::val… in main() 43 static_assert((std::is_same<std::map<int, double>::key_compare, std::less<int> >::value), ""); in main() 44 …static_assert((std::is_same<std::map<int, double>::allocator_type, std::allocator<std::pair<const … in main() 45 …static_assert((std::is_same<std::map<int, double>::reference, std::pair<const int, double>&>::valu… in main() 46 …static_assert((std::is_same<std::map<int, double>::const_reference, const std::pair<const int, dou… in main() 47 …static_assert((std::is_same<std::map<int, double>::pointer, std::pair<const int, double>*>::value)… in main() 48 …static_assert((std::is_same<std::map<int, double>::const_pointer, const std::pair<const int, doubl… in main() 49 static_assert((std::is_same<std::map<int, double>::size_type, std::size_t>::value), ""); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/tuple.creation/ |
D | tuple_cat.pass.cpp | 27 std::tuple<> t = std::tuple_cat(); in main() 30 std::tuple<> t1; in main() 31 std::tuple<> t2 = std::tuple_cat(t1); in main() 34 std::tuple<> t = std::tuple_cat(std::tuple<>()); in main() 37 std::tuple<> t = std::tuple_cat(std::array<int, 0>()); in main() 41 std::tuple<int> t1(1); in main() 42 std::tuple<int> t = std::tuple_cat(t1); in main() 43 assert(std::get<0>(t) == 1); in main() 46 std::tuple<int, MoveOnly> t = in main() 47 std::tuple_cat(std::tuple<int, MoveOnly>(1, 2)); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.const/re.matchflag/ |
D | match_flag_type.pass.cpp | 40 assert(std::regex_constants::match_default == 0); in main() 41 assert(std::regex_constants::match_not_bol != 0); in main() 42 assert(std::regex_constants::match_not_eol != 0); in main() 43 assert(std::regex_constants::match_not_bow != 0); in main() 44 assert(std::regex_constants::match_not_eow != 0); in main() 45 assert(std::regex_constants::match_any != 0); in main() 46 assert(std::regex_constants::match_not_null != 0); in main() 47 assert(std::regex_constants::match_continuous != 0); in main() 48 assert(std::regex_constants::match_prev_avail != 0); in main() 49 assert(std::regex_constants::format_default == 0); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostream.forward/ |
D | iosfwd.pass.cpp | 18 std::char_traits<char>* t1 = 0; in main() 19 std::char_traits<wchar_t>* t2 = 0; in main() 20 std::char_traits<unsigned short>* t3 = 0; in main() 23 std::basic_ios<char>* t1 = 0; in main() 24 std::basic_ios<wchar_t>* t2 = 0; in main() 25 std::basic_ios<unsigned short>* t3 = 0; in main() 28 std::basic_streambuf<char>* t1 = 0; in main() 29 std::basic_streambuf<wchar_t>* t2 = 0; in main() 30 std::basic_streambuf<unsigned short>* t3 = 0; in main() 33 std::basic_istream<char>* t1 = 0; in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.const/re.synopt/ |
D | syntax_option_type.pass.cpp | 37 assert(std::regex_constants::icase != 0); in main() 38 assert(std::regex_constants::nosubs != 0); in main() 39 assert(std::regex_constants::optimize != 0); in main() 40 assert(std::regex_constants::collate != 0); in main() 41 assert(std::regex_constants::ECMAScript == 0); in main() 42 assert(std::regex_constants::basic != 0); in main() 43 assert(std::regex_constants::extended != 0); in main() 44 assert(std::regex_constants::awk != 0); in main() 45 assert(std::regex_constants::grep != 0); in main() 46 assert(std::regex_constants::egrep != 0); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.traits/ |
D | lookup_collatename.pass.cpp | 25 test(const char_type* A, const std::basic_string<char_type>& expected) in test() 27 std::regex_traits<char_type> t; in test() 34 test("NUL", std::string("\x00", 1)); in main() 35 test("alert", std::string("\x07")); in main() 36 test("backspace", std::string("\x08")); in main() 37 test("tab", std::string("\x09")); in main() 38 test("carriage-return", std::string("\x0D")); in main() 39 test("newline", std::string("\x0A")); in main() 40 test("vertical-tab", std::string("\x0B")); in main() 41 test("form-feed", std::string("\x0C")); in main() [all …]
|
D | lookup_classname.pass.cpp | 25 test(const char_type* A, std::ctype_base::mask expected, bool icase = false) in test() 27 std::regex_traits<char_type> t; in test() 34 test("d", std::ctype_base::digit); in main() 35 test("D", std::ctype_base::digit); in main() 36 test("d", std::ctype_base::digit, true); in main() 37 test("D", std::ctype_base::digit, true); in main() 39 test("w", std::regex_traits<char>::__regex_word | std::ctype_base::alnum in main() 40 | std::ctype_base::upper | std::ctype_base::lower); in main() 41 test("W", std::regex_traits<char>::__regex_word | std::ctype_base::alnum in main() 42 | std::ctype_base::upper | std::ctype_base::lower); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale/locale.cons/ |
D | char_pointer.pass.cpp | 22 void* operator new(std::size_t s) throw(std::bad_alloc) in operator new() 25 return std::malloc(s); in operator new() 31 std::free(p); in operator delete() 34 void check(const std::locale& loc) in check() 36 assert(std::has_facet<std::collate<char> >(loc)); in check() 37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 39 assert(std::has_facet<std::ctype<char> >(loc)); in check() 40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() [all …]
|
D | locale_locale_cat.pass.cpp | 22 void* operator new(std::size_t s) throw(std::bad_alloc) in operator new() 25 return std::malloc(s); in operator new() 31 std::free(p); in operator delete() 34 void check(const std::locale& loc) in check() 36 assert(std::has_facet<std::collate<char> >(loc)); in check() 37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 39 assert(std::has_facet<std::ctype<char> >(loc)); in check() 40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() [all …]
|
D | locale_string_cat.pass.cpp | 22 void* operator new(std::size_t s) throw(std::bad_alloc) in operator new() 25 return std::malloc(s); in operator new() 31 std::free(p); in operator delete() 34 void check(const std::locale& loc) in check() 36 assert(std::has_facet<std::collate<char> >(loc)); in check() 37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 39 assert(std::has_facet<std::ctype<char> >(loc)); in check() 40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() [all …]
|
D | locale_facetptr.pass.cpp | 22 void* operator new(std::size_t s) throw(std::bad_alloc) in operator new() 25 return std::malloc(s); in operator new() 31 std::free(p); in operator delete() 34 void check(const std::locale& loc) in check() 36 assert(std::has_facet<std::collate<char> >(loc)); in check() 37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 39 assert(std::has_facet<std::ctype<char> >(loc)); in check() 40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() [all …]
|
D | locale_char_pointer_cat.pass.cpp | 22 void* operator new(std::size_t s) throw(std::bad_alloc) in operator new() 25 return std::malloc(s); in operator new() 31 std::free(p); in operator delete() 34 void check(const std::locale& loc) in check() 36 assert(std::has_facet<std::collate<char> >(loc)); in check() 37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 39 assert(std::has_facet<std::ctype<char> >(loc)); in check() 40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() [all …]
|
D | string.pass.cpp | 22 void* operator new(std::size_t s) throw(std::bad_alloc) in operator new() 25 return std::malloc(s); in operator new() 31 std::free(p); in operator delete() 34 void check(const std::locale& loc) in check() 36 assert(std::has_facet<std::collate<char> >(loc)); in check() 37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 39 assert(std::has_facet<std::ctype<char> >(loc)); in check() 40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale/locale.statics/ |
D | global.pass.cpp | 19 void check(const std::locale& loc) in check() 21 assert(std::has_facet<std::collate<char> >(loc)); in check() 22 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 24 assert(std::has_facet<std::ctype<char> >(loc)); in check() 25 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 26 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 27 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() 28 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check() 29 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check() 31 assert((std::has_facet<std::moneypunct<char> >(loc))); in check() [all …]
|
D | classic.pass.cpp | 17 void check(const std::locale& loc) in check() 19 assert(std::has_facet<std::collate<char> >(loc)); in check() 20 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 22 assert(std::has_facet<std::ctype<char> >(loc)); in check() 23 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 24 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 25 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() 26 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check() 27 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check() 29 assert((std::has_facet<std::moneypunct<char> >(loc))); in check() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/c.strings/ |
D | cwchar.pass.cpp | 33 std::mbstate_t mb = {0}; in main() 34 std::size_t s = 0; in main() 35 std::tm *tm = 0; in main() 36 std::wint_t w = 0; in main() 45 static_assert((std::is_same<decltype(std::fwprintf(fp, L"")), int>::value), ""); in main() 46 static_assert((std::is_same<decltype(std::fwscanf(fp, L"")), int>::value), ""); in main() 47 static_assert((std::is_same<decltype(std::swprintf(ws, s, L"")), int>::value), ""); in main() 48 static_assert((std::is_same<decltype(std::swscanf(L"", L"")), int>::value), ""); in main() 49 static_assert((std::is_same<decltype(std::vfwprintf(fp, L"", va)), int>::value), ""); in main() 50 static_assert((std::is_same<decltype(std::vfwscanf(fp, L"", va)), int>::value), ""); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/set/ |
D | types.pass.cpp | 40 static_assert((std::is_same<std::set<int>::key_type, int>::value), ""); in main() 41 static_assert((std::is_same<std::set<int>::value_type, int>::value), ""); in main() 42 static_assert((std::is_same<std::set<int>::key_compare, std::less<int> >::value), ""); in main() 43 static_assert((std::is_same<std::set<int>::value_compare, std::less<int> >::value), ""); in main() 44 static_assert((std::is_same<std::set<int>::allocator_type, std::allocator<int> >::value), ""); in main() 45 static_assert((std::is_same<std::set<int>::reference, int&>::value), ""); in main() 46 static_assert((std::is_same<std::set<int>::const_reference, const int&>::value), ""); in main() 47 static_assert((std::is_same<std::set<int>::pointer, int*>::value), ""); in main() 48 static_assert((std::is_same<std::set<int>::const_pointer, const int*>::value), ""); in main() 49 static_assert((std::is_same<std::set<int>::size_type, std::size_t>::value), ""); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multiset/ |
D | types.pass.cpp | 40 static_assert((std::is_same<std::multiset<int>::key_type, int>::value), ""); in main() 41 static_assert((std::is_same<std::multiset<int>::value_type, int>::value), ""); in main() 42 static_assert((std::is_same<std::multiset<int>::key_compare, std::less<int> >::value), ""); in main() 43 static_assert((std::is_same<std::multiset<int>::value_compare, std::less<int> >::value), ""); in main() 44 …static_assert((std::is_same<std::multiset<int>::allocator_type, std::allocator<int> >::value), ""); in main() 45 static_assert((std::is_same<std::multiset<int>::reference, int&>::value), ""); in main() 46 static_assert((std::is_same<std::multiset<int>::const_reference, const int&>::value), ""); in main() 47 static_assert((std::is_same<std::multiset<int>::pointer, int*>::value), ""); in main() 48 static_assert((std::is_same<std::multiset<int>::const_pointer, const int*>::value), ""); in main() 49 static_assert((std::is_same<std::multiset<int>::size_type, std::size_t>::value), ""); in main() [all …]
|