Home
last modified time | relevance | path

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

12345

/xnu-8792.41.9/tests/intrusive_shared_ptr_src/ !
H A Dabi.size_alignment.cpp21 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 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 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.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 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-8792.41.9/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…
128static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Derived const>, /*to*/ test_bounded…
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…
[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-8792.41.9/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 Dthread_group.h84 static_assert(
93 static_assert(
H A Dsocd_client_kern.h92 static_assert(SOCD_PACK_2X32(VALUE(0xffff1000), VALUE(0xffff1200)) == 0xffff1000ffff1200, "PACK_2X3…
93 static_assert(SOCD_PACK_LSB(VALUE(0xffff), VALUE(0x0)) == 0xfffe, "PACK_LSB failed to return expect…
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) ==
H A Dcpu_quiesce.c103 static_assert(MAX_CPUS <= CPU_CHECKIN_MASK_MAX_CPUS);
104 static_assert(CPU_CHECKIN_MASK == CPU_EXPECTED_MASK >> 1);
/xnu-8792.41.9/libkern/libkern/c++/ !
H A DOSData.h963 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-8792.41.9/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-8792.41.9/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-8792.41.9/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-8792.41.9/bsd/kern/ !
H A Dkern_malloc.c110 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-8792.41.9/osfmk/arm/ !
H A Dcpu_data_internal.h64 static_assert(sizeof(cpumap_t) * CHAR_BIT >= MAX_CPUS, "cpumap_t bitvector is too small for current…
70 static_assert((CPUWINDOWS_BASE >= VM_MIN_KERNEL_ADDRESS) && ((CPUWINDOWS_TOP - 1) <= VM_MAX_KERNEL_…
/xnu-8792.41.9/osfmk/machine/ !
H A Dmachine_perfmon.h49 static_assert(PERFMON_SPEC_MAX_ATTR_COUNT < sizeof(uint64_t) * CHAR_BIT,

12345