/external/libcxx/test/std/depr/depr.c.headers/ |
D | math_h.pass.cpp | 103 static_assert((std::is_same<decltype(abs((float)0)), float>::value), ""); in test_abs() 104 static_assert((std::is_same<decltype(abs((double)0)), double>::value), ""); in test_abs() 105 static_assert((std::is_same<decltype(abs((long double)0)), long double>::value), ""); in test_abs() 106 static_assert((std::is_same<decltype(abs(Ambiguous())), Ambiguous>::value), ""); in test_abs() 112 static_assert((std::is_same<decltype(acos((float)0)), float>::value), ""); in test_acos() 113 static_assert((std::is_same<decltype(acos((bool)0)), double>::value), ""); in test_acos() 114 static_assert((std::is_same<decltype(acos((unsigned short)0)), double>::value), ""); in test_acos() 115 static_assert((std::is_same<decltype(acos((int)0)), double>::value), ""); in test_acos() 116 static_assert((std::is_same<decltype(acos((unsigned int)0)), double>::value), ""); in test_acos() 117 static_assert((std::is_same<decltype(acos((long)0)), double>::value), ""); in test_acos() [all …]
|
D | stdint_h.pass.cpp | 24 static_assert(sizeof(int8_t)*CHAR_BIT == 8, in main() 26 static_assert(std::is_signed<int8_t>::value, in main() 29 static_assert(sizeof(int16_t)*CHAR_BIT == 16, in main() 31 static_assert(std::is_signed<int16_t>::value, in main() 34 static_assert(sizeof(int32_t)*CHAR_BIT == 32, in main() 36 static_assert(std::is_signed<int32_t>::value, in main() 39 static_assert(sizeof(int64_t)*CHAR_BIT == 64, in main() 41 static_assert(std::is_signed<int64_t>::value, in main() 45 static_assert(sizeof(uint8_t)*CHAR_BIT == 8, in main() 47 static_assert(std::is_unsigned<uint8_t>::value, in main() [all …]
|
/external/libcxx/test/libcxx/utilities/meta/ |
D | is_referenceable.pass.cpp | 25 static_assert((!std::__is_referenceable<void>::value), ""); 26 static_assert(( std::__is_referenceable<int>::value), ""); 27 static_assert(( std::__is_referenceable<int[3]>::value), ""); 28 static_assert(( std::__is_referenceable<int[]>::value), ""); 29 static_assert(( std::__is_referenceable<int &>::value), ""); 30 static_assert(( std::__is_referenceable<const int &>::value), ""); 31 static_assert(( std::__is_referenceable<int *>::value), ""); 32 static_assert(( std::__is_referenceable<const int *>::value), ""); 33 static_assert(( std::__is_referenceable<Foo>::value), ""); 34 static_assert(( std::__is_referenceable<const Foo>::value), ""); [all …]
|
/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/ |
D | aligned_storage.pass.cpp | 26 static_assert(std::is_same<std::aligned_storage_t<10, 1>, T1>::value, ""); in main() 29 static_assert(std::is_pod<T1>::value, ""); in main() 31 static_assert(std::is_trivial<T1>::value, ""); in main() 32 static_assert(std::is_standard_layout<T1>::value, ""); in main() 33 static_assert(std::alignment_of<T1>::value == 1, ""); in main() 34 static_assert(sizeof(T1) == 10, ""); in main() 39 static_assert(std::is_same<std::aligned_storage_t<10, 2>, T1>::value, ""); in main() 42 static_assert(std::is_pod<T1>::value, ""); in main() 44 static_assert(std::is_trivial<T1>::value, ""); in main() 45 static_assert(std::is_standard_layout<T1>::value, ""); in main() [all …]
|
D | common_type.pass.cpp | 76 static_assert(std::is_same<Decay<T1>, T1>::value, "must be same"); 77 static_assert(std::is_same<Decay<T2>, T2>::value, "must be same"); 88 static_assert(no_common_type<>::value, ""); in test_bullet_one() 94 static_assert(std::is_same<CommonType<void>, void>::value, ""); in test_bullet_two() 95 static_assert(std::is_same<CommonType<int>, int>::value, ""); in test_bullet_two() 96 static_assert(std::is_same<CommonType<int const>, int>::value, ""); in test_bullet_two() 97 static_assert(std::is_same<CommonType<int volatile[]>, int volatile*>::value, ""); in test_bullet_two() 98 static_assert(std::is_same<CommonType<void(&)()>, void(*)()>::value, ""); in test_bullet_two() 100 static_assert(no_common_type<X<double> >::value, ""); in test_bullet_two() 107 static_assert(!std::is_same<T, DT>::value || !std::is_same<U, DU>::value, ""); in test_bullet_three_one_imp() [all …]
|
D | aligned_union.pass.cpp | 28 static_assert(std::is_same<std::aligned_union_t<10, char>, T1>::value, "" ); in main() 30 static_assert(std::is_trivial<T1>::value, ""); in main() 31 static_assert(std::is_standard_layout<T1>::value, ""); in main() 32 static_assert(std::alignment_of<T1>::value == 1, ""); in main() 33 static_assert(sizeof(T1) == 10, ""); in main() 38 static_assert(std::is_same<std::aligned_union_t<10, short>, T1>::value, "" ); in main() 40 static_assert(std::is_trivial<T1>::value, ""); in main() 41 static_assert(std::is_standard_layout<T1>::value, ""); in main() 42 static_assert(std::alignment_of<T1>::value == 2, ""); in main() 43 static_assert(sizeof(T1) == 10, ""); in main() [all …]
|
/external/libcxx/test/std/numerics/c.math/ |
D | cmath.pass.cpp | 106 static_assert((std::is_same<decltype(std::abs((float)0)), float>::value), ""); in test_abs() 107 static_assert((std::is_same<decltype(std::abs((double)0)), double>::value), ""); in test_abs() 108 static_assert((std::is_same<decltype(std::abs((long double)0)), long double>::value), ""); in test_abs() 109 static_assert((std::is_same<decltype(abs(Ambiguous())), Ambiguous>::value), ""); in test_abs() 115 static_assert((std::is_same<decltype(std::acos((float)0)), float>::value), ""); in test_acos() 116 static_assert((std::is_same<decltype(std::acos((bool)0)), double>::value), ""); in test_acos() 117 static_assert((std::is_same<decltype(std::acos((unsigned short)0)), double>::value), ""); in test_acos() 118 static_assert((std::is_same<decltype(std::acos((int)0)), double>::value), ""); in test_acos() 119 static_assert((std::is_same<decltype(std::acos((unsigned int)0)), double>::value), ""); in test_acos() 120 static_assert((std::is_same<decltype(std::acos((long)0)), double>::value), ""); in test_acos() [all …]
|
/external/libcxx/test/std/containers/views/span.cons/ |
D | assign.pass.cpp | 73 static_assert(std::size(spans) == 13, "" ); in main() 76 static_assert(doAssign(spans[0], spans[0]), ""); in main() 77 static_assert(doAssign(spans[0], spans[1]), ""); in main() 78 static_assert(doAssign(spans[0], spans[2]), ""); in main() 79 static_assert(doAssign(spans[0], spans[3]), ""); in main() 80 static_assert(doAssign(spans[0], spans[4]), ""); in main() 81 static_assert(doAssign(spans[0], spans[5]), ""); in main() 82 static_assert(doAssign(spans[0], spans[6]), ""); in main() 83 static_assert(doAssign(spans[0], spans[7]), ""); in main() 84 static_assert(doAssign(spans[0], spans[8]), ""); in main() [all …]
|
/external/clang/test/SemaCXX/ |
D | complex-folding.cpp | 5 static_assert((0.0 + 0.0j) == (0.0 + 0.0j)); 6 static_assert((0.0 + 0.0j) != (0.0 + 0.0j)); // expected-error {{static_assert}} 8 static_assert((0.0 + 0.0j) == 0.0); 9 static_assert(0.0 == (0.0 + 0.0j)); 10 static_assert(0.0 == 0.0j); 11 static_assert((0.0 + 1.0j) != 0.0); 12 static_assert(1.0 != (0.0 + 0.0j)); 13 static_assert(0.0 != 1.0j); 17 static_assert((1.0 + 0.0j) == (0.0 + 0.0j)); // expected-error {{static_assert}} 18 static_assert((1.0 + 0.0j) == (1.0 + 0.0j)); [all …]
|
D | predefined-expr.cpp | 6 static_assert(sizeof(__func__) == 4, "foo"); in foo() 7 static_assert(sizeof(__FUNCTION__) == 4, "foo"); in foo() 8 static_assert(sizeof(__PRETTY_FUNCTION__) == 11, "auto foo()"); in foo() 13 static_assert(sizeof(__func__) == 4, "bar"); in bar() 14 static_assert(sizeof(__FUNCTION__) == 4, "bar"); in bar() 15 static_assert(sizeof(__PRETTY_FUNCTION__) == 10, "int bar()"); in bar() 22 static_assert(sizeof(__func__) == 4, "baz"); in baz() 23 static_assert(sizeof(__FUNCTION__) == 4, "baz"); in baz() 24 static_assert(sizeof(__PRETTY_FUNCTION__) == 20, "int baz() [T = int]"); in baz() 27 static_assert(sizeof(__func__) == 11, "operator()"); in baz() [all …]
|
/external/libcxx/test/std/diagnostics/syserr/ |
D | errc.pass.cpp | 18 static_assert(static_cast<int>(std::errc::address_family_not_supported) == EAFNOSUPPORT, ""); in main() 19 static_assert(static_cast<int>(std::errc::address_in_use) == EADDRINUSE, ""); in main() 20 static_assert(static_cast<int>(std::errc::address_not_available) == EADDRNOTAVAIL, ""); in main() 21 static_assert(static_cast<int>(std::errc::already_connected) == EISCONN, ""); in main() 22 static_assert(static_cast<int>(std::errc::argument_list_too_long) == E2BIG, ""); in main() 23 static_assert(static_cast<int>(std::errc::argument_out_of_domain) == EDOM, ""); in main() 24 static_assert(static_cast<int>(std::errc::bad_address) == EFAULT, ""); in main() 25 static_assert(static_cast<int>(std::errc::bad_file_descriptor) == EBADF, ""); in main() 26 static_assert(static_cast<int>(std::errc::bad_message) == EBADMSG, ""); in main() 27 static_assert(static_cast<int>(std::errc::broken_pipe) == EPIPE, ""); in main() [all …]
|
/external/strace/ |
D | bpf_attr_check.c | 11 static_assert(SoM(struct BPF_MAP_CREATE_struct, map_type) == SoM(union bpf_attr, map_type), 13 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, map_type) == offsetof(union bpf_attr, map_typ… 18 static_assert(SoM(struct BPF_MAP_CREATE_struct, key_size) == SoM(union bpf_attr, key_size), 20 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, key_size) == offsetof(union bpf_attr, key_siz… 25 static_assert(SoM(struct BPF_MAP_CREATE_struct, value_size) == SoM(union bpf_attr, value_size), 27 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, value_size) == offsetof(union bpf_attr, value… 32 static_assert(SoM(struct BPF_MAP_CREATE_struct, max_entries) == SoM(union bpf_attr, max_entries), 34 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, max_entries) == offsetof(union bpf_attr, max_… 39 static_assert(SoM(struct BPF_MAP_CREATE_struct, map_flags) == SoM(union bpf_attr, map_flags), 41 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, map_flags) == offsetof(union bpf_attr, map_fl… [all …]
|
/external/libcxx/test/std/experimental/simd/simd.traits/ |
D | is_simd_mask.pass.cpp | 27 static_assert(ex::is_simd_mask<ex::native_simd_mask<int8_t>>::value, ""); 28 static_assert(ex::is_simd_mask<ex::native_simd_mask<int16_t>>::value, ""); 29 static_assert(ex::is_simd_mask<ex::native_simd_mask<int32_t>>::value, ""); 30 static_assert(ex::is_simd_mask<ex::native_simd_mask<int64_t>>::value, ""); 31 static_assert(ex::is_simd_mask<ex::native_simd_mask<uint8_t>>::value, ""); 32 static_assert(ex::is_simd_mask<ex::native_simd_mask<uint16_t>>::value, ""); 33 static_assert(ex::is_simd_mask<ex::native_simd_mask<uint32_t>>::value, ""); 34 static_assert(ex::is_simd_mask<ex::native_simd_mask<uint64_t>>::value, ""); 35 static_assert(ex::is_simd_mask<ex::native_simd_mask<float>>::value, ""); 36 static_assert(ex::is_simd_mask<ex::native_simd_mask<double>>::value, ""); [all …]
|
D | is_simd.pass.cpp | 27 static_assert(ex::is_simd<ex::native_simd<int8_t>>::value, ""); 28 static_assert(ex::is_simd<ex::native_simd<int16_t>>::value, ""); 29 static_assert(ex::is_simd<ex::native_simd<int32_t>>::value, ""); 30 static_assert(ex::is_simd<ex::native_simd<int64_t>>::value, ""); 31 static_assert(ex::is_simd<ex::native_simd<uint8_t>>::value, ""); 32 static_assert(ex::is_simd<ex::native_simd<uint16_t>>::value, ""); 33 static_assert(ex::is_simd<ex::native_simd<uint32_t>>::value, ""); 34 static_assert(ex::is_simd<ex::native_simd<uint64_t>>::value, ""); 35 static_assert(ex::is_simd<ex::native_simd<float>>::value, ""); 36 static_assert(ex::is_simd<ex::native_simd<double>>::value, ""); [all …]
|
D | is_abi_tag.pass.cpp | 27 static_assert(ex::is_abi_tag<ex::simd_abi::native<int8_t>>::value, ""); 28 static_assert(ex::is_abi_tag<ex::simd_abi::native<int16_t>>::value, ""); 29 static_assert(ex::is_abi_tag<ex::simd_abi::native<int32_t>>::value, ""); 30 static_assert(ex::is_abi_tag<ex::simd_abi::native<int64_t>>::value, ""); 31 static_assert(ex::is_abi_tag<ex::simd_abi::native<uint8_t>>::value, ""); 32 static_assert(ex::is_abi_tag<ex::simd_abi::native<uint16_t>>::value, ""); 33 static_assert(ex::is_abi_tag<ex::simd_abi::native<uint32_t>>::value, ""); 34 static_assert(ex::is_abi_tag<ex::simd_abi::native<uint64_t>>::value, ""); 35 static_assert(ex::is_abi_tag<ex::simd_abi::native<float>>::value, ""); 36 static_assert(ex::is_abi_tag<ex::simd_abi::native<double>>::value, ""); [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/clang/test/CXX/special/class.copy/ |
D | p12-0x.cpp | 6 static_assert(B == __has_trivial_copy(T), ""); 7 static_assert(B == __is_trivially_constructible(T, T), ""); 8 static_assert(B == __is_trivially_constructible(T, const T &), ""); 9 static_assert(B == __is_trivially_constructible(T, T &&), ""); 57 static_assert(!__is_trivially_constructible(MutableTemplateCtorMember, const MutableTemplateCtorMem… 58 static_assert(__is_trivially_constructible(MutableTemplateCtorMember, MutableTemplateCtorMember &&)… 64 static_assert(!__is_trivially_constructible(MutableTemplateCtorMember2, const MutableTemplateCtorMe… 65 static_assert(__is_trivially_constructible(MutableTemplateCtorMember2, MutableTemplateCtorMember2 &… 76 static_assert(!__has_trivial_copy(TNT), "lie deliberately for gcc compatibility"); 77 static_assert(__is_trivially_constructible(TNT, TNT), ""); [all …]
|
D | p25-0x.cpp | 6 static_assert(B == __has_trivial_assign(T), ""); 7 static_assert(B == __is_trivially_assignable(T&, T), ""); 8 static_assert(B == __is_trivially_assignable(T&, const T &), ""); 9 static_assert(B == __is_trivially_assignable(T&, T &&), ""); 10 static_assert(B == __is_trivially_assignable(T&&, T), ""); 11 static_assert(B == __is_trivially_assignable(T&&, const T &), ""); 12 static_assert(B == __is_trivially_assignable(T&&, T &&), ""); 58 static_assert(!__is_trivially_assignable(MutableTemplateCtorMember, const MutableTemplateCtorMember… 59 static_assert(__is_trivially_assignable(MutableTemplateCtorMember, MutableTemplateCtorMember &&), "… 70 static_assert(!__has_trivial_assign(TNT), "lie deliberately for gcc compatibility"); [all …]
|
/external/googletest/googlemock/test/ |
D | gmock-pp_test.cc | 8 static_assert(GMOCK_PP_CAT(1, 4) == 14, ""); 9 static_assert(GMOCK_PP_INTERNAL_INTERNAL_16TH(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 static_assert(GMOCK_PP_NARG() == 1, ""); 13 static_assert(GMOCK_PP_NARG(x) == 1, ""); 14 static_assert(GMOCK_PP_NARG(x, y) == 2, ""); 15 static_assert(GMOCK_PP_NARG(x, y, z) == 3, ""); 16 static_assert(GMOCK_PP_NARG(x, y, z, w) == 4, ""); 17 static_assert(!GMOCK_PP_HAS_COMMA(), ""); 18 static_assert(GMOCK_PP_HAS_COMMA(b, ), ""); 19 static_assert(!GMOCK_PP_HAS_COMMA((, )), ""); [all …]
|
/external/clang/test/CodeGenCXX/ |
D | aarch64-aapcs-zerolength-bitfield.cpp | 14 static_assert(offsetof(struct t1, bar) == 1); 15 static_assert(sizeof(struct t1) == 4); 23 static_assert(offsetof(struct t2, bar) == 2); 24 static_assert(sizeof(struct t2) == 4); 32 static_assert(offsetof(struct t3, bar) == 4); 33 static_assert(sizeof(struct t3) == 8); 41 static_assert(offsetof(struct t4, bar) == 8); 42 static_assert(sizeof(struct t4) == 16); 50 static_assert(offsetof(struct t5, bar) == 8); 51 static_assert(sizeof(struct t5) == 16); [all …]
|
/external/strace/xlat/ |
D | evdev_keycode.h | 8 static_assert((KEY_RESERVED) == (0), "KEY_RESERVED != 0"); 15 static_assert((KEY_ESC) == (1), "KEY_ESC != 1"); 22 static_assert((KEY_1) == (2), "KEY_1 != 2"); 29 static_assert((KEY_2) == (3), "KEY_2 != 3"); 36 static_assert((KEY_3) == (4), "KEY_3 != 4"); 43 static_assert((KEY_4) == (5), "KEY_4 != 5"); 50 static_assert((KEY_5) == (6), "KEY_5 != 6"); 57 static_assert((KEY_6) == (7), "KEY_6 != 7"); 64 static_assert((KEY_7) == (8), "KEY_7 != 8"); 71 static_assert((KEY_8) == (9), "KEY_8 != 9"); [all …]
|
D | kvm_cap.h | 8 static_assert((KVM_CAP_IRQCHIP) == (0), "KVM_CAP_IRQCHIP != 0"); 15 static_assert((KVM_CAP_HLT) == (1), "KVM_CAP_HLT != 1"); 22 static_assert((KVM_CAP_MMU_SHADOW_CACHE_CONTROL) == (2), "KVM_CAP_MMU_SHADOW_CACHE_CONTROL != 2"); 29 static_assert((KVM_CAP_USER_MEMORY) == (3), "KVM_CAP_USER_MEMORY != 3"); 36 static_assert((KVM_CAP_SET_TSS_ADDR) == (4), "KVM_CAP_SET_TSS_ADDR != 4"); 43 static_assert((KVM_CAP_VAPIC) == (6), "KVM_CAP_VAPIC != 6"); 50 static_assert((KVM_CAP_EXT_CPUID) == (7), "KVM_CAP_EXT_CPUID != 7"); 57 static_assert((KVM_CAP_CLOCKSOURCE) == (8), "KVM_CAP_CLOCKSOURCE != 8"); 64 static_assert((KVM_CAP_NR_VCPUS) == (9), "KVM_CAP_NR_VCPUS != 9"); 71 static_assert((KVM_CAP_NR_MEMSLOTS) == (10), "KVM_CAP_NR_MEMSLOTS != 10"); [all …]
|
/external/libcxx/test/std/utilities/meta/meta.rel/ |
D | is_convertible.pass.cpp | 20 static_assert((std::is_convertible<T, U>::value), ""); in test_is_convertible() 21 static_assert((std::is_convertible<const T, U>::value), ""); in test_is_convertible() 22 static_assert((std::is_convertible<T, const U>::value), ""); in test_is_convertible() 23 static_assert((std::is_convertible<const T, const U>::value), ""); in test_is_convertible() 25 static_assert((std::is_convertible_v<T, U>), ""); in test_is_convertible() 26 static_assert((std::is_convertible_v<const T, U>), ""); in test_is_convertible() 27 static_assert((std::is_convertible_v<T, const U>), ""); in test_is_convertible() 28 static_assert((std::is_convertible_v<const T, const U>), ""); in test_is_convertible() 35 static_assert((!std::is_convertible<T, U>::value), ""); in test_is_not_convertible() 36 static_assert((!std::is_convertible<const T, U>::value), ""); in test_is_not_convertible() [all …]
|
D | is_invocable.pass.cpp | 49 static_assert(std::is_invocable<Fn, Tag&, int>::value, ""); in main() 50 static_assert(std::is_invocable<Fn, DerFromTag&, int>::value, ""); in main() 51 static_assert(std::is_invocable<RFn, Tag&&, int>::value, ""); in main() 52 static_assert(!std::is_invocable<RFn, Tag&, int>::value, ""); in main() 53 static_assert(!std::is_invocable<Fn, Tag&>::value, ""); in main() 54 static_assert(!std::is_invocable<Fn, Tag const&, int>::value, ""); in main() 61 static_assert(std::is_invocable<Fn, T&, int>::value, ""); in main() 62 static_assert(std::is_invocable<Fn, DT&, int>::value, ""); in main() 63 static_assert(std::is_invocable<Fn, const T&, int>::value, ""); in main() 64 static_assert(std::is_invocable<Fn, T&&, int>::value, ""); in main() [all …]
|
/external/libcxx/test/libcxx/iterators/ |
D | trivial_iterators.pass.cpp | 97 static_assert(( std::__libcpp_is_trivial_iterator<char *>::value), ""); in main() 98 static_assert(( std::__libcpp_is_trivial_iterator<const char *>::value), ""); in main() 99 static_assert(( std::__libcpp_is_trivial_iterator<int *>::value), ""); in main() 100 static_assert(( std::__libcpp_is_trivial_iterator<T *>::value), ""); in main() 102 … static_assert(( std::__libcpp_is_trivial_iterator<std::move_iterator<char *> > ::value), ""); in main() 103 … static_assert(( std::__libcpp_is_trivial_iterator<std::move_iterator<const char *> >::value), ""); in main() 104 … static_assert(( std::__libcpp_is_trivial_iterator<std::move_iterator<int *> > ::value), ""); in main() 105 … static_assert(( std::__libcpp_is_trivial_iterator<std::move_iterator<T *> > ::value), ""); in main() 107 …static_assert(( std::__libcpp_is_trivial_iterator<std::reverse_iterator<char *> > ::value), "… in main() 108 …static_assert(( std::__libcpp_is_trivial_iterator<std::reverse_iterator<const char *> >::value), "… in main() [all …]
|