| /xnu-8020.140.41/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)); 23 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr)); 37 static_assert(sizeof(FooShared) == sizeof(FooRaw)); 38 static_assert(alignof(FooShared) == alignof(FooRaw)); 39 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr)); 55 static_assert(sizeof(FooShared) == sizeof(FooRaw)); 56 static_assert(alignof(FooShared) == alignof(FooRaw)); 57 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr)); 75 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()
|
| H A D | get.cpp | 44 static_assert(!can_call_get_on_temporary<T>(int{}), ""); in tests()
|
| /xnu-8020.140.41/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… 128 …static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Derived const>, /*to*/ test_bounded… 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… [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-8020.140.41/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 | lock_ticket.c | 69 static_assert(sizeof(hw_lck_ticket_t) == 4); 70 static_assert(offsetof(hw_lck_ticket_t, tcurnext) == 2); 71 static_assert(offsetof(hw_lck_ticket_t, cticket) == 2); 72 static_assert(offsetof(hw_lck_ticket_t, nticket) == 3); 73 static_assert(HW_LCK_TICKET_LOCK_VALID_BIT == 75 static_assert(HW_LCK_TICKET_LOCK_INCREMENT == 82 static_assert(MAX_CPUS < 256);
|
| H A D | socd_client_kern.h | 88 static_assert(SOCD_PACK_2X32(VALUE(0xffff1000), VALUE(0xffff1200)) == 0xffff1000ffff1200, "PACK_2X3… 89 static_assert(SOCD_PACK_LSB(VALUE(0xffff), VALUE(0x0)) == 0xfffe, "PACK_LSB failed to return expect…
|
| H A D | hazard.h | 309 static_assert(slot < HAZARD_GUARD_SLOTS, "invalid slot #"); \ 328 static_assert(slot + n <= HAZARD_GUARD_SLOTS, "invalid slot #"); \
|
| H A D | cpu_quiesce.c | 103 static_assert(MAX_CPUS <= CPU_CHECKIN_MASK_MAX_CPUS); 104 static_assert(CPU_CHECKIN_MASK == CPU_EXPECTED_MASK >> 1);
|
| /xnu-8020.140.41/libkern/libkern/c++/ |
| H A D | OSData.h | 963 static_assert(sizeof(T) <= size_t(UINT32_MAX), "value type's size is too large"); in validateValueType() 964 static_assert(__is_trivially_copyable(T) && __is_standard_layout(T), in validateValueType() 966 static_assert(!__is_pointer(T) || (acquisition == kValueNoCopy), in validateValueType() 968 static_assert(KALLOC_TYPE_IS_DATA_ONLY(T) || (acquisition == kValueNoCopy), in validateValueType()
|
| /xnu-8020.140.41/osfmk/ipc/ |
| H A D | ipc_table.c | 162 static_assert(IPC_TABLE_ENTRIES_SIZE >= 1); in ipc_table_max_entries() 178 static_assert(IPC_TABLE_REQUESTS_SIZE >= 2); in ipc_table_max_requests()
|
| /xnu-8020.140.41/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-8020.140.41/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-8020.140.41/bsd/kern/ |
| H A D | kern_malloc.c | 110 static_assert(sizeof(vm_size_t) == sizeof(size_t)); in _MALLOC_external() 111 static_assert(M_WAITOK == Z_WAITOK); in _MALLOC_external() 112 static_assert(M_NOWAIT == Z_NOWAIT); in _MALLOC_external() 113 static_assert(M_ZERO == Z_ZERO); in _MALLOC_external()
|
| /xnu-8020.140.41/osfmk/machine/ |
| H A D | machine_perfmon.h | 49 static_assert(PERFMON_SPEC_MAX_ATTR_COUNT < sizeof(uint64_t) * CHAR_BIT,
|