| /freebsd/contrib/googletest/googlemock/test/ |
| H A D | gmock-pp_test.cc | 13 static_assert(GMOCK_PP_CAT(1, 4) == 14, ""); 14 static_assert(GMOCK_PP_INTERNAL_INTERNAL_16TH(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 17 static_assert(GMOCK_PP_NARG() == 1, ""); 18 static_assert(GMOCK_PP_NARG(x) == 1, ""); 19 static_assert(GMOCK_PP_NARG(x, y) == 2, ""); 20 static_assert(GMOCK_PP_NARG(x, y, z) == 3, ""); 21 static_assert(GMOCK_PP_NARG(x, y, z, w) == 4, ""); 22 static_assert(!GMOCK_PP_HAS_COMMA(), ""); 23 static_assert(GMOCK_PP_HAS_COMMA(b, ), ""); 24 static_assert(!GMOCK_PP_HAS_COMMA((, )), ""); [all …]
|
| H A D | gmock-actions_test.cc | 69 static_assert(std::is_base_of<std::false_type, in TEST() 73 static_assert(std::is_base_of<std::true_type, in TEST() 79 static_assert(std::is_base_of< in TEST() 84 static_assert(std::is_base_of< in TEST() 89 static_assert(std::is_base_of< in TEST() 111 static_assert(std::is_base_of<std::true_type, internal::conjunction<>>::value, in TEST() 115 static_assert( in TEST() 119 static_assert( in TEST() 123 static_assert( in TEST() 128 static_assert( in TEST() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/ |
| H A D | common.h | 168 static_assert(offsetof(AllocatorState, VersionMagic) == 0, ""); 169 static_assert(sizeof(AllocatorVersionMagic) == 8, ""); 171 static_assert(sizeof(AllocatorState) == 56, ""); 172 static_assert(offsetof(AllocatorState, FailureAddress) == 48, ""); 173 static_assert(sizeof(AllocationMetadata) == 568, ""); 174 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, ""); 176 static_assert(sizeof(AllocatorState) == 56, ""); 177 static_assert(offsetof(AllocatorState, FailureAddress) == 48, ""); 178 static_assert(sizeof(AllocationMetadata) == 568, ""); 179 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, ""); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIModeRegisterDefaults.cpp | 126 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode( 128 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode( 131 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode( 134 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode( 138 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode( 141 static_assert(decodeIndexFltRoundConversionTable( 144 static_assert(decodeIndexFltRoundConversionTable( 148 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode( 151 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode( 154 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode( [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | CmpInstAnalysis.h | 69 static_assert(CmpInst::FCMP_FALSE == 0); // 0 0 0 0 in getFCmpCode() 70 static_assert(CmpInst::FCMP_OEQ == 1); // 0 0 0 1 in getFCmpCode() 71 static_assert(CmpInst::FCMP_OGT == 2); // 0 0 1 0 in getFCmpCode() 72 static_assert(CmpInst::FCMP_OGE == 3); // 0 0 1 1 in getFCmpCode() 73 static_assert(CmpInst::FCMP_OLT == 4); // 0 1 0 0 in getFCmpCode() 74 static_assert(CmpInst::FCMP_OLE == 5); // 0 1 0 1 in getFCmpCode() 75 static_assert(CmpInst::FCMP_ONE == 6); // 0 1 1 0 in getFCmpCode() 76 static_assert(CmpInst::FCMP_ORD == 7); // 0 1 1 1 in getFCmpCode() 77 static_assert(CmpInst::FCMP_UNO == 8); // 1 0 0 0 in getFCmpCode() 78 static_assert(CmpInst::FCMP_UEQ == 9); // 1 0 0 1 in getFCmpCode() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_trace.h | 42 static_assert(sizeof(Event) == 8, "bad Event size"); 51 static_assert(kPCBits + kCompressedAddrBits + 5 == 64, 61 static_assert(sizeof(EventAccess) == 8, "bad EventAccess size"); 69 static_assert(sizeof(EventFunc) == 8, "bad EventFunc size"); 80 static_assert(kCompressedAddrBits + kUnusedBits + 9 == 64, 93 static_assert(sizeof(EventAccessExt) == 16, "bad EventAccessExt size"); 98 static_assert(kCompressedAddrBits + kSizeLoBits + 7 == 64, 111 static_assert(sizeof(EventAccessRange) == 16, "bad EventAccessRange size"); 119 static_assert(kCompressedAddrBits + kStackIDLoBits + 5 == 64, 121 static_assert(kCompressedAddrBits + kStackIDHiBits + kUnusedBits == 64, [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | Minidump.h | 46 static_assert(sizeof(Header) == 32); 63 static_assert(sizeof(LocationDescriptor) == 8); 71 static_assert(sizeof(MemoryDescriptor) == 16); 77 static_assert(sizeof(MemoryDescriptor_64) == 16); 82 static_assert(sizeof(MemoryListHeader) == 4); 88 static_assert(sizeof(Memory64ListHeader) == 16); 101 static_assert(sizeof(MemoryInfoListHeader) == 16); 132 static_assert(sizeof(MemoryInfo) == 48); 141 static_assert(sizeof(Directory) == 12); 174 static_assert(sizeof(CPUInfo) == 24); [all …]
|
| /freebsd/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-nice-strict.h | 153 static_assert(!internal::HasStrictnessModifier<MockClass>(), 159 static_assert(sizeof(*this) == sizeof(MockClass), in NiceMock() 172 static_assert(sizeof(*this) == sizeof(MockClass), in NiceMock() 180 static_assert(sizeof(*this) == sizeof(MockClass), in NiceMock() 193 static_assert(!internal::HasStrictnessModifier<MockClass>(), 201 static_assert(sizeof(*this) == sizeof(MockClass), in NaggyMock() 214 static_assert(sizeof(*this) == sizeof(MockClass), in NaggyMock() 222 static_assert(sizeof(*this) == sizeof(MockClass), in NaggyMock() 236 static_assert( 243 static_assert(sizeof(*this) == sizeof(MockClass), in StrictMock() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | iterator.h | 130 static_assert(std::is_base_of<iterator_facade_base, DerivedT>::value, 132 static_assert( 140 static_assert( 146 static_assert( 155 static_assert(std::is_base_of<iterator_facade_base, DerivedT>::value, 165 static_assert( 171 static_assert( 186 static_assert( 193 static_assert( 199 static_assert( [all …]
|
| H A D | Bitfields.h | 100 static_assert(sizeof(Unsigned) == sizeof(T), "Types must have same size"); 103 static_assert(TypeBits >= Bits, "n-bit must fit in T"); 122 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); 135 static_assert(std::is_signed<T>::value, "T must be signed"); 157 static_assert(std::is_unsigned<StorageType>::value, 164 static_assert(Bitfield::FirstBit <= StorageBits, "Data must fit in mask"); 165 static_assert(Bitfield::LastBit <= StorageBits, "Data must fit in mask"); 236 static_assert(Bits > 0, "Bits must be non zero"); 238 static_assert(Bits <= TypeBits, "Bits may not be greater than T size"); 239 static_assert(!std::is_enum<T>::value || MaxValue != T(0), [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__iterator/ |
| H A D | cpp17_iterator_concepts.h | 161 static_assert(::std::__cpp17_input_iterator<iter_t>, message) 163 static_assert(::std::__cpp17_output_iterator<iter_t, write_t>, message) 165 static_assert(::std::__cpp17_forward_iterator<iter_t>, message) 167 static_assert(::std::__cpp17_bidirectional_iterator<iter_t>, message) 169 static_assert(::std::__cpp17_random_access_iterator<iter_t>, message) 171 # define _LIBCPP_REQUIRE_CPP17_INPUT_ITERATOR(iter_t, message) static_assert(true) 172 # define _LIBCPP_REQUIRE_CPP17_OUTPUT_ITERATOR(iter_t, write_t, message) static_assert(true) 173 # define _LIBCPP_REQUIRE_CPP17_FORWARD_ITERATOR(iter_t, message) static_assert(true) 174 # define _LIBCPP_REQUIRE_CPP17_BIDIRECTIONAL_ITERATOR(iter_t, message) static_assert(true) 175 # define _LIBCPP_REQUIRE_CPP17_RANDOM_ACCESS_ITERATOR(iter_t, message) static_assert(true) [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SmallVector.cpp | 40 static_assert(sizeof(SmallVector<void *, 0>) == 43 static_assert(alignof(SmallVector<Struct16B, 0>) >= alignof(Struct16B), 45 static_assert(alignof(SmallVector<Struct32B, 0>) >= alignof(Struct32B), 47 static_assert(sizeof(SmallVector<Struct16B, 0>) >= alignof(Struct16B), 49 static_assert(sizeof(SmallVector<Struct32B, 0>) >= alignof(Struct32B), 51 static_assert(sizeof(SmallVector<void *, 1>) == 55 static_assert(sizeof(SmallVector<char, 0>) == 177 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint64_t), 180 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint32_t),
|
| /freebsd/contrib/jemalloc/m4/ |
| H A D | ax_cxx_compile_stdcxx.m4 | 183 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 256 static_assert(is_same<int, decltype(0)>::value == true, ""); 257 static_assert(is_same<int, decltype(c)>::value == false, ""); 258 static_assert(is_same<int, decltype(v)>::value == false, ""); 263 static_assert(is_same<int, decltype(ac)>::value == true, ""); 264 static_assert(is_same<int, decltype(av)>::value == true, ""); 265 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 266 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 267 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 279 static_assert(noexcept(f()) == false, ""); [all …]
|
| /freebsd/contrib/kyua/m4/ |
| H A D | ax_cxx_compile_stdcxx.m4 | 183 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 256 static_assert(is_same<int, decltype(0)>::value == true, ""); 257 static_assert(is_same<int, decltype(c)>::value == false, ""); 258 static_assert(is_same<int, decltype(v)>::value == false, ""); 263 static_assert(is_same<int, decltype(ac)>::value == true, ""); 264 static_assert(is_same<int, decltype(av)>::value == true, ""); 265 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 266 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 267 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 279 static_assert(noexcept(f()) == false, ""); [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/__iterator/ |
| H A D | cpp17_iterator_concepts.h | 33 # define _LIBCPP_REQUIRE_CPP17_INPUT_ITERATOR(iter_t, message) static_assert(true) 34 # define _LIBCPP_REQUIRE_CPP17_OUTPUT_ITERATOR(iter_t, write_t, message) static_assert(true) 35 # define _LIBCPP_REQUIRE_CPP17_FORWARD_ITERATOR(iter_t, message) static_assert(true) 36 # define _LIBCPP_REQUIRE_CPP17_BIDIRECTIONAL_ITERATOR(iter_t, message) static_assert(true) 37 # define _LIBCPP_REQUIRE_CPP17_RANDOM_ACCESS_ITERATOR(iter_t, message) static_assert(true)
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | AMDHSAKernelDescriptor.h | 273 static_assert( 276 static_assert(offsetof(kernel_descriptor_t, group_segment_fixed_size) == 279 static_assert(offsetof(kernel_descriptor_t, private_segment_fixed_size) == 282 static_assert(offsetof(kernel_descriptor_t, kernarg_size) == 285 static_assert(offsetof(kernel_descriptor_t, reserved0) == RESERVED0_OFFSET, 287 static_assert(offsetof(kernel_descriptor_t, kernel_code_entry_byte_offset) == 290 static_assert(offsetof(kernel_descriptor_t, reserved1) == RESERVED1_OFFSET, 292 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc3) == 295 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc1) == 298 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc2) == [all …]
|
| /freebsd/contrib/googletest/googlemock/include/gmock/internal/ |
| H A D | gmock-port.h | 106 static_assert(true, "no-op to require trailing semicolon") 111 static_assert(true, "no-op to require trailing semicolon") 116 static_assert(true, "no-op to require trailing semicolon") 123 static_assert(true, "no-op to require trailing semicolon") 128 static_assert(true, "no-op to require trailing semicolon") 133 static_assert(true, "no-op to require trailing semicolon")
|
| /freebsd/contrib/llvm-project/libcxx/include/__numeric/ |
| H A D | gcd_lcm.h | 57 static_assert(!is_signed<_Tp>::value, ""); 98 …static_assert(is_integral<_Tp>::value && is_integral<_Up>::value, "Arguments to gcd must be intege… 99 static_assert(!is_same<__remove_cv_t<_Tp>, bool>::value, "First argument to gcd cannot be bool"); 100 static_assert(!is_same<__remove_cv_t<_Up>, bool>::value, "Second argument to gcd cannot be bool"); 109 …static_assert(is_integral<_Tp>::value && is_integral<_Up>::value, "Arguments to lcm must be intege… 110 static_assert(!is_same<__remove_cv_t<_Tp>, bool>::value, "First argument to lcm cannot be bool"); 111 static_assert(!is_same<__remove_cv_t<_Up>, bool>::value, "Second argument to lcm cannot be bool");
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/ |
| H A D | ratio | 141 static_assert(_Xp <= max - _Yp, "overflow in __ll_add"); 158 static_assert(min - _Yp <= _Xp, "overflow in __ll_add"); 172 static_assert(min + _Yp <= _Xp, "overflow in __ll_sub"); 189 static_assert(_Xp <= max + _Yp, "overflow in __ll_sub"); 203 static_assert(_Xp != nan && _Yp != nan && __a_x <= max / __a_y, "overflow in __ll_mul"); 234 static_assert(_Xp != nan && _Yp != nan && _Yp != 0, "overflow in __ll_div"); 242 static_assert(__static_abs<_Num>::value >= 0, "ratio numerator is out of range"); 243 static_assert(_Den != 0, "ratio divide by 0"); 244 static_assert(__static_abs<_Den>::value > 0, "ratio denominator is out of range"); 291 …static_assert(__is_ratio<_R1>::value, "[ratio.general]/2 requires R1 to be a specialisation of the… [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | ratio | 132 static_assert(_Xp <= max - _Yp, "overflow in __ll_add"); 149 static_assert(min - _Yp <= _Xp, "overflow in __ll_add"); 163 static_assert(min + _Yp <= _Xp, "overflow in __ll_sub"); 180 static_assert(_Xp <= max + _Yp, "overflow in __ll_sub"); 194 static_assert(_Xp != nan && _Yp != nan && __a_x <= max / __a_y, "overflow in __ll_mul"); 225 static_assert(_Xp != nan && _Yp != nan && _Yp != 0, "overflow in __ll_div"); 233 static_assert(__static_abs<_Num> >= 0, "ratio numerator is out of range"); 234 static_assert(_Den != 0, "ratio divide by 0"); 235 static_assert(__static_abs<_Den> > 0, "ratio denominator is out of range"); 277 …static_assert(__is_ratio_v<_R1>, "[ratio.general]/2 requires R1 to be a specialisation of the rati… [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__expected/ |
| H A D | expected.h | 452 …static_assert(!is_reference_v<_Tp> && !is_function_v<_Tp> && !is_same_v<remove_cv_t<_Tp>, in_place… 617 static_assert( 754 static_assert(is_nothrow_move_constructible_v<_Tp>, 832 static_assert(is_copy_constructible_v<_Err>, "error_type has to be copy constructible"); 840 static_assert(is_copy_constructible_v<_Err>, "error_type has to be copy constructible"); 848 …static_assert(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()… 857 …static_assert(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()… 891 static_assert(is_copy_constructible_v<_Tp>, "value_type has to be copy constructible"); 892 static_assert(is_convertible_v<_Up, _Tp>, "argument has to be convertible to value_type"); 898 static_assert(is_move_constructible_v<_Tp>, "value_type has to be move constructible"); [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/include/xray/ |
| H A D | xray_records.h | 33 static_assert(sizeof(FdrAdditionalHeaderData) == 16, 65 static_assert(sizeof(XRayFileHeader) == 32, "XRayFileHeader != 32 bytes"); 104 static_assert(sizeof(XRayRecord) == 32, "XRayRecord != 32 bytes"); 130 static_assert(sizeof(XRayArgPayload) == 32, "XRayArgPayload != 32 bytes");
|
| /freebsd/lib/libc/tests/gen/ |
| H A D | limits_test.c | 17 static_assert(sizeof(type) * CHAR_BIT == TYPE ## _WIDTH, \ 19 static_assert((1ULL << (TYPE ## _WIDTH - 1)) - 1 == TYPE ## _MAX, \ 21 static_assert(TYPE ## _MIN == -TYPE ## _MAX - 1, \ 24 static_assert(sizeof(type) * CHAR_BIT == TYPE ## _WIDTH, \ 26 static_assert((type)~0ULL == TYPE ## _MAX, \
|
| /freebsd/contrib/llvm-project/libcxx/include/__ranges/ |
| H A D | to.h | 83 …static_assert(!is_const_v<_Container>, "The target container cannot be const-qualified, please rem… in to() 84 static_assert( in to() 86 …static_assert(is_class_v<_Container> || is_union_v<_Container>, "The target must be a class type o… in to() 123 static_assert(requires { __result.insert(__result.end(), std::declval<_Ref>()); }); in to() 130 …static_assert(__always_false<_Container>, "ranges::to: unable to convert to the given container ty… in to() 142 …static_assert(__always_false<_Container>, "ranges::to: unable to convert to the given container ty… in to() 188 static_assert(__always_false<_Range>, in __deduce_func() 210 …static_assert(!is_const_v<_Container>, "The target container cannot be const-qualified, please rem… in to() 211 static_assert( in to() 213 …static_assert(is_class_v<_Container> || is_union_v<_Container>, "The target must be a class type o… in to()
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/__random/ |
| H A D | clamp_to_integral.h | 30 static_assert(is_floating_point<_FloatT>::value, "must be a floating point type"); in __max_representable_int_for_float() 31 static_assert(is_integral<_IntT>::value, "must be an integral type"); in __max_representable_int_for_float() 32 static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix"); in __max_representable_int_for_float() 33 static_assert( in __max_representable_int_for_float()
|