/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/llvm/include/llvm/Analysis/ |
H A D | CmpInstAnalysis.h | 68 static_assert(CmpInst::FCMP_FALSE == 0); // 0 0 0 0 in getFCmpCode() 69 static_assert(CmpInst::FCMP_OEQ == 1); // 0 0 0 1 in getFCmpCode() 70 static_assert(CmpInst::FCMP_OGT == 2); // 0 0 1 0 in getFCmpCode() 71 static_assert(CmpInst::FCMP_OGE == 3); // 0 0 1 1 in getFCmpCode() 72 static_assert(CmpInst::FCMP_OLT == 4); // 0 1 0 0 in getFCmpCode() 73 static_assert(CmpInst::FCMP_OLE == 5); // 0 1 0 1 in getFCmpCode() 74 static_assert(CmpInst::FCMP_ONE == 6); // 0 1 1 0 in getFCmpCode() 75 static_assert(CmpInst::FCMP_ORD == 7); // 0 1 1 1 in getFCmpCode() 76 static_assert(CmpInst::FCMP_UNO == 8); // 1 0 0 0 in getFCmpCode() 77 static_assert(CmpInst::FCMP_UEQ == 9); // 1 0 0 1 in getFCmpCode() [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/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/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/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 …]
|
H A D | bit.h | 140 static_assert(!sizeof(T *), "Don't know how to handle the given type."); 216 static_assert(std::is_unsigned_v<T>, 282 static_assert(std::is_unsigned_v<T>, 295 static_assert(std::is_unsigned_v<T>, 308 static_assert(std::is_unsigned_v<T>, 318 static_assert(std::is_unsigned_v<T>, 328 static_assert(std::is_unsigned_v<T>, 343 static_assert(std::is_unsigned_v<T>, 354 static_assert(SizeOfT <= 4, "Not implemented!");
|
/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/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/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); 89 static_assert(sizeof(MemoryInfoListHeader) == 16); 120 static_assert(sizeof(MemoryInfo) == 48); 129 static_assert(sizeof(Directory) == 12); 162 static_assert(sizeof(CPUInfo) == 24); 185 static_assert(sizeof(SystemInfo) == 56); 202 static_assert(sizeof(VSFixedFileInfo) == 52); 220 static_assert(sizeof(Module) == 108); [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/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/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/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>) == 169 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint64_t), 172 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint32_t),
|
/freebsd/contrib/googletest/googlemock/include/gmock/internal/ |
H A D | gmock-port.h | 105 static_assert(true, "no-op to require trailing semicolon") 110 static_assert(true, "no-op to require trailing semicolon") 115 static_assert(true, "no-op to require trailing semicolon") 122 static_assert(true, "no-op to require trailing semicolon") 127 static_assert(true, "no-op to require trailing semicolon") 132 static_assert(true, "no-op to require trailing semicolon")
|
/freebsd/contrib/llvm-project/libcxx/include/__numeric/ |
H A D | gcd_lcm.h | 56 static_assert(!is_signed<_Tp>::value, ""); 100 …static_assert(is_integral<_Tp>::value && is_integral<_Up>::value, "Arguments to gcd must be intege… 101 static_assert(!is_same<__remove_cv_t<_Tp>, bool>::value, "First argument to gcd cannot be bool"); 102 static_assert(!is_same<__remove_cv_t<_Up>, bool>::value, "Second argument to gcd cannot be bool"); 111 …static_assert(is_integral<_Tp>::value && is_integral<_Up>::value, "Arguments to lcm must be intege… 112 static_assert(!is_same<__remove_cv_t<_Tp>, bool>::value, "First argument to lcm cannot be bool"); 113 static_assert(!is_same<__remove_cv_t<_Up>, bool>::value, "Second argument to lcm cannot be bool");
|
/freebsd/contrib/llvm-project/libcxx/include/ |
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/__expected/ |
H A D | expected.h | 448 …static_assert(!is_reference_v<_Tp> && !is_function_v<_Tp> && !is_same_v<remove_cv_t<_Tp>, in_place… 612 static_assert( 749 static_assert(is_nothrow_move_constructible_v<_Tp>, 827 static_assert(is_copy_constructible_v<_Err>, "error_type has to be copy constructible"); 835 static_assert(is_copy_constructible_v<_Err>, "error_type has to be copy constructible"); 843 …static_assert(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()… 852 …static_assert(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()… 886 static_assert(is_copy_constructible_v<_Tp>, "value_type has to be copy constructible"); 887 static_assert(is_convertible_v<_Up, _Tp>, "argument has to be convertible to value_type"); 893 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/contrib/llvm-project/libcxx/include/__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()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | atomic_helpers.h | 24 static_assert(memory_order_relaxed == __ATOMIC_RELAXED, ""); 25 static_assert(memory_order_consume == __ATOMIC_CONSUME, ""); 26 static_assert(memory_order_acquire == __ATOMIC_ACQUIRE, ""); 27 static_assert(memory_order_release == __ATOMIC_RELEASE, ""); 28 static_assert(memory_order_acq_rel == __ATOMIC_ACQ_REL, ""); 29 static_assert(memory_order_seq_cst == __ATOMIC_SEQ_CST, "");
|
/freebsd/contrib/googletest/googletest/include/gtest/ |
H A D | gtest-typed-test.h | 198 static_assert(sizeof(GTEST_STRINGIFY_(TestName)) > 1, \ 230 static_assert(::testing::internal::TypedTestCaseIsDeprecated(), ""); \ 267 static_assert(::testing::internal::TypedTestCase_P_IsDeprecated(), ""); \ 303 static_assert(::testing::internal::RegisterTypedTestCase_P_IsDeprecated(), \ 309 static_assert(sizeof(GTEST_STRINGIFY_(Prefix)) > 1, \ 330 static_assert( \
|
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/ |
H A D | lexicographical_compare_three_way.h | 40 static_assert( 42 static_assert( 96 static_assert(__comparison_category<decltype(__comp(*__first1, *__first2))>, 98 …static_assert(std::is_copy_constructible_v<_InputIterator1>, "Iterators must be copy constructible… 99 …static_assert(std::is_copy_constructible_v<_InputIterator2>, "Iterators must be copy constructible…
|