Home
last modified time | relevance | path

Searched refs:static_assert (Results 1 – 25 of 129) sorted by relevance

123456

/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dabi.size_alignment.cpp21 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 Dctor.copy.cpp83 static_assert(std::is_copy_constructible_v<test_shared_ptr<Derived> >);
86static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<B…
87static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shar…
88static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shar…
89static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Bas…
92static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<D…
95static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<char>, /*from*/ test_shared_ptr<Deri…
96static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Unrelated>, /*from*/ test_shared_ptr…
97static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Bas…
100static_assert(!std::is_constructible_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<…
H A Dassign.copy.cpp103 static_assert(std::is_copy_assignable_v<test_shared_ptr<Derived> >);
106static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<Base…
107static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shared_…
108static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shared_…
109static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Base1>…
112static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<Deri…
115static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<char>, /*from*/ test_shared_ptr<Derived…
116static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Unrelated>, /*from*/ test_shared_ptr<De…
117static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Base1>…
120static_assert(!std::is_assignable_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<2> …
H A Dctor.move.cpp97 static_assert(std::is_move_constructible_v<test_shared_ptr<Derived> >);
100static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<B…
101static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shar…
102static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shar…
103static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Bas…
106static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<D…
109static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<char>, /*from*/ test_shared_ptr<Deri…
110static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Unrelated>, /*from*/ test_shared_ptr…
111static_assert(!std::is_constructible_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Bas…
114static_assert(!std::is_constructible_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<…
H A Dassign.move.cpp104 static_assert(std::is_move_assignable_v<test_shared_ptr<Derived> >);
107static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<Base…
108static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shared_…
109static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<DerivedMultiple>, /*from*/ test_shared_…
110static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Base1>…
113static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Derived>, /*from*/ test_shared_ptr<Deri…
116static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<char>, /*from*/ test_shared_ptr<Derived…
117static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Unrelated>, /*from*/ test_shared_ptr<De…
118static_assert(!std::is_assignable_v</*to*/ test_shared_ptr<Base2>, /*from*/ test_shared_ptr<Base1>…
121static_assert(!std::is_assignable_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<2> …
H A Dabi.caller.smart.cpp16 static_assert(sizeof(SharedPtr<T>) == sizeof(T*));
17 static_assert(alignof(SharedPtr<T>) == alignof(T*));
H A Doperator.bool.cpp39 static_assert(!std::is_convertible_v<test_shared_ptr<T>, bool>); in tests()
/xnu-11215/tests/bounded_ptr_src/
H A Dctor.convert.cpp122static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base>, /*to*/ test_bounded_ptr<Deri…
123static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base1>, /*to*/ test_bounded_ptr<Der…
124static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base2>, /*to*/ test_bounded_ptr<Der…
125static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base1>, /*to*/ test_bounded_ptr<Bas…
131static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Derived>, /*to*/ test_bounded_ptr<c…
132static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Derived>, /*to*/ test_bounded_ptr<U…
133static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base1>, /*to*/ test_bounded_ptr<Bas…
136static_assert(!std::is_constructible_v</*to*/ test_bounded_ptr<char>, /*from*/ test_bounded_ptr<De…
137static_assert(!std::is_constructible_v</*to*/ test_bounded_ptr<Unrelated>, /*from*/ test_bounded_p…
138static_assert(!std::is_constructible_v</*to*/ test_bounded_ptr<Base2>, /*from*/ test_bounded_ptr<B…
[all …]
H A Dassign.convert.cpp125static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Derived>, /*from*/ test_bounded_ptr<Ba…
126static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<DerivedMultiple>, /*from*/ test_bounde…
127static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<DerivedMultiple>, /*from*/ test_bounde…
128static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Base2>, /*from*/ test_bounded_ptr<Base…
131static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Derived>, /*from*/ test_bounded_ptr<De…
134static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<char>, /*from*/ test_bounded_ptr<Deriv…
135static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Unrelated>, /*from*/ test_bounded_ptr<…
136static_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 Dpriority_queue.h421 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 Dassert.h176 …#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 Dsocd_client_kern.h94 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 Dthread_group.h102 static_assert(
114 static_assert(
H A Dlock_ticket.c97 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 DOSData.h965 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 Dx86_hypercall.c79 static_assert(sizeof(vmcore->tag) > sizeof(output), "not enough room for tag"); in hvg_hcall_trigger_dump()
80static_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 Dbegin_end.cpp63 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 Dassign.copy.cpp14 static_assert(!std::is_copy_assignable_v<test_safe_allocation<T> >);
H A Dctor.copy.cpp16 static_assert(!std::is_copy_constructible_v<test_safe_allocation<T> >);
H A Doperator.bool.cpp36 static_assert(!std::is_convertible_v<test_safe_allocation<T>, bool>); in tests()
/xnu-11215/tests/bounded_array_src/
H A Dbegin_end.cpp56 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 Dsubrs.c168 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 Dkern_malloc.c113 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 Dipc_kmsg.h195 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 Dcpu_data_internal.h63 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_…

123456