| /xnu-11215/tests/intrusive_shared_ptr_src/ |
| H A D | abi.size_alignment.cpp | 21 static_assert(sizeof(FooShared) == sizeof(FooRaw)); 22 static_assert(alignof(FooShared) == alignof(FooRaw)); 37 static_assert(sizeof(FooShared) == sizeof(FooRaw)); 38 static_assert(alignof(FooShared) == alignof(FooRaw)); 55 static_assert(sizeof(FooShared) == sizeof(FooRaw)); 56 static_assert(alignof(FooShared) == alignof(FooRaw)); 75 static_assert(sizeof(FooShared) == sizeof(FooRaw)); 76 static_assert(alignof(FooShared) == alignof(FooRaw)); 95 static_assert(sizeof(FooShared) == sizeof(FooRaw)); 115 static_assert(sizeof(FooShared) == sizeof(FooRaw)); [all …]
|
| H A D | ctor.copy.cpp | 83 static_assert(std::is_copy_constructible_v<test_shared_ptr<Derived> >); 86 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<B… 87 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shar… 88 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shar… 89 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Bas… 92 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<D… 95 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<char>, /*from*/ test_shared_ptr<Deri… 96 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Unrelated>, /*from*/ test_shared_ptr… 97 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Bas… 100 …static_assert(!std::is_constructible_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<…
|
| H A D | assign.copy.cpp | 103 static_assert(std::is_copy_assignable_v<test_shared_ptr<Derived> >); 106 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<Base… 107 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shared_… 108 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shared_… 109 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Base1>… 112 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<Deri… 115 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<char>, /*from*/ test_shared_ptr<Derived… 116 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Unrelated>, /*from*/ test_shared_ptr<De… 117 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Base1>… 120 …static_assert(!std::is_assignable_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<2> …
|
| H A D | ctor.move.cpp | 97 static_assert(std::is_move_constructible_v<test_shared_ptr<Derived> >); 100 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<B… 101 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shar… 102 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shar… 103 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Bas… 106 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<D… 109 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<char>, /*from*/ test_shared_ptr<Deri… 110 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Unrelated>, /*from*/ test_shared_ptr… 111 …static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Bas… 114 …static_assert(!std::is_constructible_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<…
|
| H A D | assign.move.cpp | 104 static_assert(std::is_move_assignable_v<test_shared_ptr<Derived> >); 107 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<Base… 108 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shared_… 109 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shared_… 110 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Base1>… 113 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<Deri… 116 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<char>, /*from*/ test_shared_ptr<Derived… 117 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Unrelated>, /*from*/ test_shared_ptr<De… 118 …static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Base1>… 121 …static_assert(!std::is_assignable_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<2> …
|
| H A D | abi.caller.smart.cpp | 16 static_assert(sizeof(SharedPtr<T>) == sizeof(T*)); 17 static_assert(alignof(SharedPtr<T>) == alignof(T*));
|
| H A D | operator.bool.cpp | 39 static_assert(!std::is_convertible_v<test_shared_ptr<T>, bool>); in tests()
|
| /xnu-11215/tests/bounded_ptr_src/ |
| H A D | ctor.convert.cpp | 122 …static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base>, /*to*/ test_bounded_ptr<Deri… 123 …static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base1>, /*to*/ test_bounded_ptr<Der… 124 …static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base2>, /*to*/ test_bounded_ptr<Der… 125 …static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base1>, /*to*/ test_bounded_ptr<Bas… 131 …static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Derived>, /*to*/ test_bounded_ptr<c… 132 …static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Derived>, /*to*/ test_bounded_ptr<U… 133 …static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base1>, /*to*/ test_bounded_ptr<Bas… 136 …static_assert(!std::is_constructible_v</*to*/ test_bounded_ptr<char>, /*from*/ test_bounded_ptr<De… 137 …static_assert(!std::is_constructible_v</*to*/ test_bounded_ptr<Unrelated>, /*from*/ test_bounded_p… 138 …static_assert(!std::is_constructible_v</*to*/ test_bounded_ptr<Base2>, /*from*/ test_bounded_ptr<B… [all …]
|
| H A D | assign.convert.cpp | 125 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Derived>, /*from*/ test_bounded_ptr<Ba… 126 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<DerivedMultiple>, /*from*/ test_bounde… 127 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<DerivedMultiple>, /*from*/ test_bounde… 128 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Base2>, /*from*/ test_bounded_ptr<Base… 131 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Derived>, /*from*/ test_bounded_ptr<De… 134 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<char>, /*from*/ test_bounded_ptr<Deriv… 135 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Unrelated>, /*from*/ test_bounded_ptr<… 136 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Base2>, /*from*/ test_bounded_ptr<Base… 139 static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Derived>, /*from*/ Derived*>);
|
| /xnu-11215/osfmk/kern/ |
| H A D | priority_queue.h | 421 static_assert(priority_queue_is_min_heap(pq), "queue is min heap"); \ 439 static_assert(priority_queue_is_max_heap(pq), "queue is max heap"); \ 474 static_assert(priority_queue_is_min_heap(pq), "queue is min heap"); \ 491 static_assert(priority_queue_is_max_heap(pq), "queue is max heap"); \ 584 static_assert(priority_queue_is_sched_heap(pq), "is a sched heap"); \ 604 static_assert(priority_queue_is_sched_heap(pq), "is a sched heap"); \ 624 static_assert(priority_queue_is_sched_heap(pq), "is a sched heap"); \ 643 static_assert(priority_queue_is_min_heap(pq), "queue is min heap"); \ 662 static_assert(priority_queue_is_max_heap(pq), "queue is max heap"); \
|
| H A D | assert.h | 176 …#define static_assert(...) _STATIC_ASSERT_OVERLOADED_MACRO(__VA_ARGS__, _static_assert_2_args, _st… macro 185 …#define static_assert(...) _STATIC_ASSERT_OVERLOADED_MACRO(__VA_ARGS__, _static_assert_2_args, _st… 194 #define _static_assert_1_arg(ex) static_assert((ex), #ex)
|
| H A D | socd_client_kern.h | 94 static_assert(SOCD_PACK_2X32(VALUE(0xffff1000), VALUE(0xffff1200)) == 0xffff1000ffff1200, "PACK_2X3… 95 static_assert(SOCD_PACK_LSB(VALUE(0xffff), VALUE(0x0)) == 0xfffe, "PACK_LSB failed to return expect…
|
| H A D | thread_group.h | 102 static_assert( 114 static_assert(
|
| H A D | lock_ticket.c | 97 static_assert(MAX_CPUS < (256 / HW_LCK_TICKET_LOCK_INCREMENT)); 98 static_assert(sizeof(hw_lck_ticket_t) == 4); 99 static_assert(offsetof(hw_lck_ticket_t, tcurnext) == 2); 100 static_assert(offsetof(hw_lck_ticket_t, cticket) == 2); 101 static_assert(offsetof(hw_lck_ticket_t, nticket) == 3); 102 static_assert(HW_LCK_TICKET_LOCK_INC_WORD == 105 static_assert((1u << HW_LCK_TICKET_LOCK_VALID_BIT) ==
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSData.h | 965 static_assert(sizeof(T) <= size_t(UINT32_MAX), "value type's size is too large"); in validateValueType() 966 static_assert(__is_trivially_copyable(T) && __is_standard_layout(T), in validateValueType() 968 static_assert(!__is_pointer(T) || (acquisition == kValueNoCopy), in validateValueType() 970 static_assert(KALLOC_TYPE_IS_DATA_ONLY(T) || (acquisition == kValueNoCopy), in validateValueType()
|
| /xnu-11215/osfmk/i386/ |
| H A D | x86_hypercall.c | 79 static_assert(sizeof(vmcore->tag) > sizeof(output), "not enough room for tag"); in hvg_hcall_trigger_dump() 80 …static_assert(sizeof(vmcore->tag[0] * sizeof(uint64_t)) == sizeof(output.rax), "mis-match of tag a… in hvg_hcall_trigger_dump() 158 static_assert(sizeof(uuid_string_t) == 37, in hvg_hcall_get_bootsessionuuid()
|
| /xnu-11215/tests/safe_allocation_src/ |
| H A D | begin_end.cpp | 63 static_assert(std::is_same_v<typename A::iterator, test_bounded_ptr<T> >); in tests() 64 static_assert(std::is_same_v<typename A::const_iterator, test_bounded_ptr<T const> >); in tests()
|
| H A D | assign.copy.cpp | 14 static_assert(!std::is_copy_assignable_v<test_safe_allocation<T> >);
|
| H A D | ctor.copy.cpp | 16 static_assert(!std::is_copy_constructible_v<test_safe_allocation<T> >);
|
| H A D | operator.bool.cpp | 36 static_assert(!std::is_convertible_v<test_safe_allocation<T>, bool>); in tests()
|
| /xnu-11215/tests/bounded_array_src/ |
| H A D | begin_end.cpp | 56 static_assert(std::is_same_v<typename A::iterator, test_bounded_ptr<T> >); in tests() 57 static_assert(std::is_same_v<typename A::const_iterator, test_bounded_ptr<T const> >); in tests()
|
| /xnu-11215/osfmk/device/ |
| H A D | subrs.c | 168 static_assert(__arch_bcopy, "architecture must provide bcopy"); 169 static_assert(__arch_bzero, "architecture must provide bzero"); 170 static_assert(__arch_memcpy, "architecture must provide memcpy"); 171 static_assert(__arch_memmove, "architecture must provide memmove"); 172 static_assert(__arch_memset, "architecture must provide memset"); 231 static_assert(sizeof(unsigned long) == sizeof(uint64_t), in memcmp_zero_ptr_aligned_impl()
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_malloc.c | 113 static_assert(sizeof(vm_size_t) == sizeof(size_t)); in _MALLOC_external() 114 static_assert(M_WAITOK == Z_WAITOK); in _MALLOC_external() 115 static_assert(M_NOWAIT == Z_NOWAIT); in _MALLOC_external() 116 static_assert(M_ZERO == Z_ZERO); in _MALLOC_external()
|
| /xnu-11215/osfmk/ipc/ |
| H A D | ipc_kmsg.h | 195 static_assert(sizeof(struct ipc_kmsg) == IKM_ALLOC_SIZE); 196 static_assert(offsetof(struct ipc_kmsg, ikm_big_data) + 198 static_assert(offsetof(struct ipc_kmsg, ikm_small_data) + IKM_SMALL_MSG_SIZE +
|
| /xnu-11215/osfmk/arm/ |
| H A D | cpu_data_internal.h | 63 static_assert(sizeof(cpumap_t) * CHAR_BIT >= MAX_CPUS, "cpumap_t bitvector is too small for current… 69 static_assert((CPUWINDOWS_BASE >= VM_MIN_KERNEL_ADDRESS) && ((CPUWINDOWS_TOP - 1) <= VM_MAX_KERNEL_…
|