| /xnu-8019.80.24/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 | 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.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 | 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-8019.80.24/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-8019.80.24/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 | 68 static_assert(sizeof(hw_lck_ticket_t) == 4); 69 static_assert(offsetof(hw_lck_ticket_t, tcurnext) == 2); 70 static_assert(offsetof(hw_lck_ticket_t, cticket) == 2); 71 static_assert(offsetof(hw_lck_ticket_t, nticket) == 3); 72 static_assert(HW_LCK_TICKET_LOCK_VALID_BIT == 74 static_assert(HW_LCK_TICKET_LOCK_INCREMENT == 81 static_assert(MAX_CPUS < 256);
|
| H A D | waitq.h | 209 static_assert(sizeof(struct waitq) == WQ_OPAQUE_SIZE, "waitq structure size mismatch"); 210 static_assert(__alignof(struct waitq) == WQ_OPAQUE_ALIGN, "waitq structure alignment mismatch"); 225 static_assert(sizeof(struct waitq_set) == WQS_OPAQUE_SIZE, "waitq_set structure size mismatch"); 226 static_assert(__alignof(struct waitq_set) == WQS_OPAQUE_ALIGN, "waitq_set structure alignment misma…
|
| 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-8019.80.24/bsd/kern/ |
| H A D | kern_malloc.c | 98 static_assert(sizeof(vm_size_t) == sizeof(size_t)); in __MALLOC_ext() 99 static_assert(M_WAITOK == Z_WAITOK); in __MALLOC_ext() 100 static_assert(M_NOWAIT == Z_NOWAIT); in __MALLOC_ext() 101 static_assert(M_ZERO == Z_ZERO); in __MALLOC_ext()
|
| /xnu-8019.80.24/osfmk/ipc/ |
| H A D | ipc_table.c | 160 static_assert(IPC_TABLE_ENTRIES_SIZE >= 1); in ipc_table_max_entries() 176 static_assert(IPC_TABLE_REQUESTS_SIZE >= 2); in ipc_table_max_requests()
|
| /xnu-8019.80.24/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-8019.80.24/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-8019.80.24/osfmk/machine/ |
| H A D | machine_perfmon.h | 49 static_assert(PERFMON_SPEC_MAX_ATTR_COUNT < sizeof(uint64_t) * CHAR_BIT,
|
| /xnu-8019.80.24/osfmk/arm/ |
| H A D | cpu_data_internal.h | 67 static_assert(sizeof(cpumap_t) * CHAR_BIT >= MAX_CPUS, "cpumap_t bitvector is too small for current… 77 static_assert((CPUWINDOWS_BASE >= VM_MIN_KERNEL_ADDRESS) && ((CPUWINDOWS_TOP - 1) <= VM_MAX_KERNEL_…
|