/external/libcxx/test/std/numerics/c.math/ |
D | cmath.pass.cpp | 30 struct Ambiguous : std::true_type { // ADL 105 static_assert((std::is_same<decltype(std::abs((float)0)), float>::value), ""); in test_abs() 106 static_assert((std::is_same<decltype(std::abs((double)0)), double>::value), ""); in test_abs() 107 static_assert((std::is_same<decltype(std::abs((long double)0)), long double>::value), ""); in test_abs() 108 static_assert((std::is_same<decltype(abs(Ambiguous())), Ambiguous>::value), ""); in test_abs() 109 assert(std::abs(-1.) == 1); in test_abs() 114 static_assert((std::is_same<decltype(std::acos((float)0)), float>::value), ""); in test_acos() 115 static_assert((std::is_same<decltype(std::acos((bool)0)), double>::value), ""); in test_acos() 116 static_assert((std::is_same<decltype(std::acos((unsigned short)0)), double>::value), ""); in test_acos() 117 static_assert((std::is_same<decltype(std::acos((int)0)), double>::value), ""); in test_acos() [all …]
|
/external/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/is.heap/ |
D | is_heap_comp.pass.cpp | 27 return std::is_heap(std::begin(ia), std::end(ia), std::greater<int>()) in test_constexpr() 28 && !std::is_heap(std::begin(ib), std::end(ib), std::greater<int>()); in test_constexpr() 35 assert(std::is_heap(i1, i1, std::greater<int>())); in test() 36 …assert(std::is_heap(i1, i1+1, std::greater<int>()) == (std::is_heap_until(i1, i1+1, std::greater<i… in test() 39 …assert(std::is_heap(i1, i1+2, std::greater<int>()) == (std::is_heap_until(i1, i1+2, std::greater<i… in test() 40 …assert(std::is_heap(i2, i2+2, std::greater<int>()) == (std::is_heap_until(i2, i2+2, std::greater<i… in test() 41 …assert(std::is_heap(i3, i3+2, std::greater<int>()) == (std::is_heap_until(i3, i3+2, std::greater<i… in test() 49 …assert(std::is_heap(i4, i4+3, std::greater<int>()) == (std::is_heap_until(i4, i4+3, std::greater<i… in test() 50 …assert(std::is_heap(i5, i5+3, std::greater<int>()) == (std::is_heap_until(i5, i5+3, std::greater<i… in test() 51 …assert(std::is_heap(i6, i6+3, std::greater<int>()) == (std::is_heap_until(i6, i6+3, std::greater<i… in test() [all …]
|
D | is_heap_until_comp.pass.cpp | 27 return (std::is_heap_until(std::begin(ia), std::end(ia), std::greater<int>()) == ia+1) in test_constexpr() 28 && (std::is_heap_until(std::begin(ib), std::end(ib), std::greater<int>()) == ib+3); in test_constexpr() 35 assert(std::is_heap_until(i1, i1, std::greater<int>()) == i1); in test() 36 assert(std::is_heap_until(i1, i1+1, std::greater<int>()) == i1+1); in test() 39 assert(std::is_heap_until(i1, i1+2, std::greater<int>()) == i1+2); in test() 40 assert(std::is_heap_until(i2, i2+2, std::greater<int>()) == i2+2); in test() 41 assert(std::is_heap_until(i3, i3+2, std::greater<int>()) == i3+1); in test() 49 assert(std::is_heap_until(i4, i4+3, std::greater<int>()) == i4+3); in test() 50 assert(std::is_heap_until(i5, i5+3, std::greater<int>()) == i5+3); in test() 51 assert(std::is_heap_until(i6, i6+3, std::greater<int>()) == i6+3); in test() [all …]
|
D | is_heap.pass.cpp | 26 return std::is_heap(std::begin(ia), std::end(ia)) in test_constexpr() 27 && !std::is_heap(std::begin(ib), std::end(ib)); in test_constexpr() 34 assert(std::is_heap(i1, i1)); in test() 35 assert(std::is_heap(i1, i1+1) == (std::is_heap_until(i1, i1+1) == i1+1)); in test() 38 assert(std::is_heap(i1, i1+2) == (std::is_heap_until(i1, i1+2) == i1+2)); in test() 39 assert(std::is_heap(i2, i2+2) == (std::is_heap_until(i2, i2+2) == i2+2)); in test() 40 assert(std::is_heap(i3, i3+2) == (std::is_heap_until(i3, i3+2) == i3+2)); in test() 48 assert(std::is_heap(i4, i4+3) == (std::is_heap_until(i4, i4+3) == i4+3)); in test() 49 assert(std::is_heap(i5, i5+3) == (std::is_heap_until(i5, i5+3) == i5+3)); in test() 50 assert(std::is_heap(i6, i6+3) == (std::is_heap_until(i6, i6+3) == i6+3)); in test() [all …]
|
/external/libcxx/test/std/numerics/complex.number/ |
D | cases.h | 20 const std::complex<double> testcases[] = 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 …]
|
/external/libcxx/test/std/re/re.const/re.err/ |
D | error_type.pass.cpp | 41 assert(std::regex_constants::error_collate != 0); in main() 42 assert(std::regex_constants::error_ctype != 0); in main() 43 assert(std::regex_constants::error_escape != 0); in main() 44 assert(std::regex_constants::error_backref != 0); in main() 45 assert(std::regex_constants::error_brack != 0); in main() 46 assert(std::regex_constants::error_paren != 0); in main() 47 assert(std::regex_constants::error_brace != 0); in main() 48 assert(std::regex_constants::error_badbrace != 0); in main() 49 assert(std::regex_constants::error_range != 0); in main() 50 assert(std::regex_constants::error_space != 0); in main() [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | tuple_cat.pass.cpp | 30 std::tuple<> t = std::tuple_cat(); in main() 34 std::tuple<> t1; in main() 35 std::tuple<> t2 = std::tuple_cat(t1); in main() 39 std::tuple<> t = std::tuple_cat(std::tuple<>()); in main() 43 std::tuple<> t = std::tuple_cat(std::array<int, 0>()); in main() 47 std::tuple<int> t1(1); in main() 48 std::tuple<int> t = std::tuple_cat(t1); in main() 49 assert(std::get<0>(t) == 1); in main() 54 constexpr std::tuple<> t = std::tuple_cat(); in main() 58 constexpr std::tuple<> t1; in main() [all …]
|
/external/libcxx/test/libcxx/atomics/ |
D | diagnose_invalid_memory_order.fail.cpp | 24 std::atomic<int> x(42); in main() 25 volatile std::atomic<int>& vx = x; in main() 30 …x.load(std::memory_order_release); // expected-warning {{memory order argument to atomic operation… in main() 31 …x.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operation… in main() 32 …vx.load(std::memory_order_release); // expected-warning {{memory order argument to atomic operatio… in main() 33 …vx.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operatio… in main() 35 x.load(std::memory_order_relaxed); in main() 36 x.load(std::memory_order_consume); in main() 37 x.load(std::memory_order_acquire); in main() 38 x.load(std::memory_order_seq_cst); in main() [all …]
|
/external/libcxx/test/std/utilities/meta/meta.logical/ |
D | disjunction.pass.cpp | 25 static_assert (!std::disjunction<>::value, "" ); in main() 26 static_assert ( std::disjunction<std::true_type >::value, "" ); in main() 27 static_assert (!std::disjunction<std::false_type>::value, "" ); in main() 29 static_assert (!std::disjunction_v<>, "" ); in main() 30 static_assert ( std::disjunction_v<std::true_type >, "" ); in main() 31 static_assert (!std::disjunction_v<std::false_type>, "" ); in main() 33 static_assert ( std::disjunction<std::true_type, std::true_type >::value, "" ); in main() 34 static_assert ( std::disjunction<std::true_type, std::false_type>::value, "" ); in main() 35 static_assert ( std::disjunction<std::false_type, std::true_type >::value, "" ); in main() 36 static_assert (!std::disjunction<std::false_type, std::false_type>::value, "" ); in main() [all …]
|
D | conjunction.pass.cpp | 25 static_assert ( std::conjunction<>::value, "" ); in main() 26 static_assert ( std::conjunction<std::true_type >::value, "" ); in main() 27 static_assert (!std::conjunction<std::false_type>::value, "" ); in main() 29 static_assert ( std::conjunction_v<>, "" ); in main() 30 static_assert ( std::conjunction_v<std::true_type >, "" ); in main() 31 static_assert (!std::conjunction_v<std::false_type>, "" ); in main() 33 static_assert ( std::conjunction<std::true_type, std::true_type >::value, "" ); in main() 34 static_assert (!std::conjunction<std::true_type, std::false_type>::value, "" ); in main() 35 static_assert (!std::conjunction<std::false_type, std::true_type >::value, "" ); in main() 36 static_assert (!std::conjunction<std::false_type, std::false_type>::value, "" ); in main() [all …]
|
/external/libcxx/test/std/atomics/atomics.types.generic/ |
D | cstdint_typedefs.pass.cpp | 45 …static_assert((std::is_same<std::atomic< std::int_least8_t>, std::atomic_int_least8_t>::value),… in main() 46 …static_assert((std::is_same<std::atomic< std::uint_least8_t>, std::atomic_uint_least8_t>::value),… in main() 47 …static_assert((std::is_same<std::atomic< std::int_least16_t>, std::atomic_int_least16_t>::value),… in main() 48 …static_assert((std::is_same<std::atomic<std::uint_least16_t>, std::atomic_uint_least16_t>::value),… in main() 49 …static_assert((std::is_same<std::atomic< std::int_least32_t>, std::atomic_int_least32_t>::value),… in main() 50 …static_assert((std::is_same<std::atomic<std::uint_least32_t>, std::atomic_uint_least32_t>::value),… in main() 51 …static_assert((std::is_same<std::atomic< std::int_least64_t>, std::atomic_int_least64_t>::value),… in main() 52 …static_assert((std::is_same<std::atomic<std::uint_least64_t>, std::atomic_uint_least64_t>::value),… in main() 54 …static_assert((std::is_same<std::atomic< std::int_fast8_t>, std::atomic_int_fast8_t>::value), "… in main() 55 …static_assert((std::is_same<std::atomic< std::uint_fast8_t>, std::atomic_uint_fast8_t>::value), "… in main() [all …]
|
D | integral_typedefs.pass.cpp | 46 static_assert((std::is_same<std::atomic<char>, std::atomic_char>::value), ""); in main() 47 static_assert((std::is_same<std::atomic<signed char>, std::atomic_schar>::value), ""); in main() 48 static_assert((std::is_same<std::atomic<unsigned char>, std::atomic_uchar>::value), ""); in main() 49 static_assert((std::is_same<std::atomic<short>, std::atomic_short>::value), ""); in main() 50 static_assert((std::is_same<std::atomic<unsigned short>, std::atomic_ushort>::value), ""); in main() 51 static_assert((std::is_same<std::atomic<int>, std::atomic_int>::value), ""); in main() 52 static_assert((std::is_same<std::atomic<unsigned int>, std::atomic_uint>::value), ""); in main() 53 static_assert((std::is_same<std::atomic<long>, std::atomic_long>::value), ""); in main() 54 static_assert((std::is_same<std::atomic<unsigned long>, std::atomic_ulong>::value), ""); in main() 55 static_assert((std::is_same<std::atomic<long long>, std::atomic_llong>::value), ""); in main() [all …]
|
/external/libcxx/test/std/re/re.const/re.matchflag/ |
D | match_flag_type.pass.cpp | 41 assert(std::regex_constants::match_default == 0); in main() 42 assert(std::regex_constants::match_not_bol != 0); in main() 43 assert(std::regex_constants::match_not_eol != 0); in main() 44 assert(std::regex_constants::match_not_bow != 0); in main() 45 assert(std::regex_constants::match_not_eow != 0); in main() 46 assert(std::regex_constants::match_any != 0); in main() 47 assert(std::regex_constants::match_not_null != 0); in main() 48 assert(std::regex_constants::match_continuous != 0); in main() 49 assert(std::regex_constants::match_prev_avail != 0); in main() 50 assert(std::regex_constants::format_default == 0); in main() [all …]
|
/external/libcxx/test/std/re/re.traits/ |
D | lookup_classname.pass.cpp | 27 typename std::regex_traits<char_type>::char_class_type expected, in test() 30 typedef typename std::regex_traits<char_type>::char_class_type char_class_type; in test() 31 std::regex_traits<char_type> t; in test() 40 typename std::regex_traits<char_type>::char_class_type expected, in test_w() 43 typedef typename std::regex_traits<char_type>::char_class_type char_class_type; in test_w() 44 std::regex_traits<char_type> t; in test_w() 48 LIBCPP_ASSERT((expected | std::regex_traits<char_type>::__regex_word) == result); in test_w() 61 LIBCPP_ASSERT((std::ctype_base::space & std::regex_traits<char>::__regex_word) == 0); in main() 62 LIBCPP_ASSERT((std::ctype_base::print & std::regex_traits<char>::__regex_word) == 0); in main() 63 LIBCPP_ASSERT((std::ctype_base::cntrl & std::regex_traits<char>::__regex_word) == 0); in main() [all …]
|
D | lookup_collatename.pass.cpp | 33 test(const char_type* A, const std::basic_string<char_type>& expected) in test() 35 std::regex_traits<char_type> t; in test() 42 test("NUL", std::string("\x00", 1)); in main() 43 test("alert", std::string("\x07")); in main() 44 test("backspace", std::string("\x08")); in main() 45 test("tab", std::string("\x09")); in main() 46 test("carriage-return", std::string("\x0D")); in main() 47 test("newline", std::string("\x0A")); in main() 48 test("vertical-tab", std::string("\x0B")); in main() 49 test("form-feed", std::string("\x0C")); in main() [all …]
|
/external/libcxx/test/std/strings/c.strings/ |
D | cwchar.pass.cpp | 34 std::mbstate_t mb = {}; in main() 35 std::size_t s = 0; in main() 36 std::tm *tm = 0; in main() 37 std::wint_t w = 0; in main() 39 std::va_list va; in main() 53 static_assert((std::is_same<decltype(std::fwprintf(fp, L"")), int>::value), ""); in main() 54 static_assert((std::is_same<decltype(std::fwscanf(fp, L"")), int>::value), ""); in main() 55 static_assert((std::is_same<decltype(std::swprintf(ws, s, L"")), int>::value), ""); in main() 56 static_assert((std::is_same<decltype(std::swscanf(L"", L"")), int>::value), ""); in main() 57 static_assert((std::is_same<decltype(std::vfwprintf(fp, L"", va)), int>::value), ""); in main() [all …]
|
/external/libcxx/test/std/re/re.const/re.synopt/ |
D | syntax_option_type.pass.cpp | 38 assert(std::regex_constants::icase != 0); in main() 39 assert(std::regex_constants::nosubs != 0); in main() 40 assert(std::regex_constants::optimize != 0); in main() 41 assert(std::regex_constants::collate != 0); in main() 42 assert(std::regex_constants::ECMAScript == 0); in main() 43 assert(std::regex_constants::basic != 0); in main() 44 assert(std::regex_constants::extended != 0); in main() 45 assert(std::regex_constants::awk != 0); in main() 46 assert(std::regex_constants::grep != 0); in main() 47 assert(std::regex_constants::egrep != 0); in main() [all …]
|
/external/libcxx/test/std/language.support/cstdint/cstdint.syn/ |
D | cstdint.pass.cpp | 25 static_assert(sizeof(std::int8_t)*CHAR_BIT == 8, in main() 27 static_assert(std::is_signed<std::int8_t>::value, in main() 30 static_assert(sizeof(std::int16_t)*CHAR_BIT == 16, in main() 32 static_assert(std::is_signed<std::int16_t>::value, in main() 35 static_assert(sizeof(std::int32_t)*CHAR_BIT == 32, in main() 37 static_assert(std::is_signed<std::int32_t>::value, in main() 40 static_assert(sizeof(std::int64_t)*CHAR_BIT == 64, in main() 42 static_assert(std::is_signed<std::int64_t>::value, in main() 46 static_assert(sizeof(std::uint8_t)*CHAR_BIT == 8, in main() 48 static_assert(std::is_unsigned<std::uint8_t>::value, in main() [all …]
|
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/ |
D | seekoff.pass.cpp | 24 std::stringbuf sb(std::ios_base::in); in main() 25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main() 26 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out) == -1); in main() 27 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out) == -1); in main() 28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main() 29 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | std::ios_base::out) == -1); in main() 30 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | std::ios_base::out) == -1); in main() 31 assert(sb.pubseekoff(0, std::ios_base::beg, std::ios_base::in) == 0); in main() 32 assert(sb.pubseekoff(0, std::ios_base::cur, std::ios_base::in) == 0); in main() 33 assert(sb.pubseekoff(0, std::ios_base::end, std::ios_base::in) == 0); in main() [all …]
|
/external/libcxx/test/std/input.output/iostream.forward/ |
D | iosfwd.pass.cpp | 23 test<std::char_traits<char>* >(); in main() 24 test<std::char_traits<wchar_t>* >(); in main() 25 test<std::char_traits<unsigned short>*>(); in main() 27 test<std::basic_ios<char>* >(); in main() 28 test<std::basic_ios<wchar_t>* >(); in main() 29 test<std::basic_ios<unsigned short>*>(); in main() 31 test<std::basic_streambuf<char>* >(); in main() 32 test<std::basic_streambuf<wchar_t>* >(); in main() 33 test<std::basic_streambuf<unsigned short>*>(); in main() 35 test<std::basic_istream<char>* >(); in main() [all …]
|
/external/swiftshader/third_party/LLVM/tools/bugpoint/ |
D | ToolRunner.h | 42 std::vector<std::string> gccArgs; // GCC-specific arguments. 44 const std::vector<std::string> *GCCArgs) in GCC() 51 static GCC *create(std::string &Message, 52 const std::string &GCCBinary, 53 const std::vector<std::string> *Args); 62 int ExecuteProgram(const std::string &ProgramFile, 63 const std::vector<std::string> &Args, 65 const std::string &InputFile, 66 const std::string &OutputFile, 67 std::string *Error = 0, [all …]
|
/external/libcxx/test/std/language.support/support.runtime/ |
D | cstdlib.pass.cpp | 46 static_assert((std::is_same<decltype(obj.quot), IntType>::value), ""); in test_div_struct() 47 static_assert((std::is_same<decltype(obj.rem), IntType>::value), ""); in test_div_struct() 53 std::size_t s = 0; in main() 55 static_assert((std::is_same<std::size_t, decltype(sizeof(int))>::value), ""); in main() 56 test_div_struct<std::div_t, int>(); in main() 57 test_div_struct<std::ldiv_t, long>(); in main() 58 test_div_struct<std::lldiv_t, long long>(); in main() 60 static_assert((std::is_same<decltype(std::atof("")), double>::value), ""); in main() 61 static_assert((std::is_same<decltype(std::atoi("")), int>::value), ""); in main() 62 static_assert((std::is_same<decltype(std::atol("")), long>::value), ""); in main() [all …]
|
/external/dng_sdk/source/ |
D | dng_safe_arithmetic.cpp | 32 if ((arg1 >= 0 && arg2 <= std::numeric_limits<T>::max() - arg1) || in SafeAdd() 33 (arg1 < 0 && arg2 >= std::numeric_limits<T>::min() - arg1)) { in SafeAdd() 46 if (arg1 == 0 || arg2 <= std::numeric_limits<T>::max() / arg1) { in SafeUnsignedMult() 56 bool SafeInt32Add(std::int32_t arg1, std::int32_t arg2, std::int32_t *result) { in SafeInt32Add() 65 std::int32_t SafeInt32Add(std::int32_t arg1, std::int32_t arg2) { in SafeInt32Add() 66 return SafeAdd<std::int32_t>(arg1, arg2); in SafeInt32Add() 69 std::int64_t SafeInt64Add(std::int64_t arg1, std::int64_t arg2) { in SafeInt64Add() 70 return SafeAdd<std::int64_t>(arg1, arg2); in SafeInt64Add() 73 bool SafeUint32Add(std::uint32_t arg1, std::uint32_t arg2, in SafeUint32Add() 74 std::uint32_t *result) { in SafeUint32Add() [all …]
|
/external/libcxx/test/std/depr/depr.c.headers/ |
D | math_h.pass.cpp | 28 struct Ambiguous : std::true_type { // ADL 102 static_assert((std::is_same<decltype(abs((float)0)), float>::value), ""); in test_abs() 103 static_assert((std::is_same<decltype(abs((double)0)), double>::value), ""); in test_abs() 104 static_assert((std::is_same<decltype(abs((long double)0)), long double>::value), ""); in test_abs() 105 static_assert((std::is_same<decltype(abs(Ambiguous())), Ambiguous>::value), ""); in test_abs() 111 static_assert((std::is_same<decltype(acos((float)0)), float>::value), ""); in test_acos() 112 static_assert((std::is_same<decltype(acos((bool)0)), double>::value), ""); in test_acos() 113 static_assert((std::is_same<decltype(acos((unsigned short)0)), double>::value), ""); in test_acos() 114 static_assert((std::is_same<decltype(acos((int)0)), double>::value), ""); in test_acos() 115 static_assert((std::is_same<decltype(acos((unsigned int)0)), double>::value), ""); in test_acos() [all …]
|
/external/libcxx/test/std/utilities/variant/variant.get/ |
D | get_index.pass.cpp | 44 using V = std::variant<int, const long>; in test_const_lvalue_get() 47 ASSERT_NOEXCEPT(std::get<0>(v)); in test_const_lvalue_get() 49 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), const int &); in test_const_lvalue_get() 50 static_assert(std::get<0>(v) == 42, ""); in test_const_lvalue_get() 53 using V = std::variant<int, const long>; in test_const_lvalue_get() 55 ASSERT_NOT_NOEXCEPT(std::get<0>(v)); in test_const_lvalue_get() 56 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), const int &); in test_const_lvalue_get() 57 assert(std::get<0>(v) == 42); in test_const_lvalue_get() 60 using V = std::variant<int, const long>; in test_const_lvalue_get() 63 ASSERT_NOEXCEPT(std::get<1>(v)); in test_const_lvalue_get() [all …]
|