Home
last modified time | relevance | path

Searched refs:test_bounded_ptr (Results 1 – 25 of 32) sorted by relevance

12

/xnu-11215/tests/bounded_ptr_src/
H A Dctor.convert.cpp66 test_bounded_ptr<To> to = static_cast<test_bounded_ptr<To> >(from); // conversion (explicit) in tests()
72 test_bounded_ptr<From> from = nullptr; in tests()
90 test_bounded_ptr<To> to(from); in tests()
122 …static_assert(!std::is_convertible_v</*from*/ test_bounded_ptr<Base>, /*to*/ test_bounded_ptr<Deri…
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…
[all …]
H A Dassign.convert.cpp51 test_bounded_ptr<To> to; in tests()
52 test_bounded_ptr<To>& ref = (to = from); in tests()
63 test_bounded_ptr<To>& ref = (to = from); in tests()
71 test_bounded_ptr<To> to; in tests()
72 test_bounded_ptr<To>& ref = (to = from); in tests()
92 test_bounded_ptr<To> to; in tests()
125 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Derived>, /*from*/ test_bounded_ptr<Ba…
128 …static_assert(!std::is_assignable_v</*to*/ test_bounded_ptr<Base2>, /*from*/ test_bounded_ptr<Base…
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<…
[all …]
H A Darith.add.cpp36 test_bounded_ptr<QualT> res = ptr + 0; in tests()
40 test_bounded_ptr<QualT> res = ptr + 1; in tests()
44 test_bounded_ptr<QualT> res = ptr + 2; in tests()
48 test_bounded_ptr<QualT> res = ptr + 3; in tests()
52 test_bounded_ptr<QualT> res = ptr + 4; in tests()
56 test_bounded_ptr<QualT> res = ptr + 5; in tests()
70 test_bounded_ptr<QualT> res = ptr + 0; in tests()
74 test_bounded_ptr<QualT> res = ptr + -1; in tests()
78 test_bounded_ptr<QualT> res = ptr + -2; in tests()
106 test_bounded_ptr<QualT> res = 0 + ptr; in tests()
[all …]
H A Dctor.nullptr.cpp21 test_bounded_ptr<T> p = nullptr; in tests()
25 test_bounded_ptr<T> p{nullptr}; in tests()
33 test_bounded_ptr<T> p = static_cast<test_bounded_ptr<T> >(nullptr); in tests()
45 test_bounded_ptr<T> p = NULL; in tests()
49 test_bounded_ptr<T> p{NULL}; in tests()
53 test_bounded_ptr<T> p(NULL); in tests()
57 test_bounded_ptr<T> p = static_cast<test_bounded_ptr<T> >(NULL); in tests()
69 test_bounded_ptr<T> p = 0; in tests()
73 test_bounded_ptr<T> p{0}; in tests()
77 test_bounded_ptr<T> p(0); in tests()
[all …]
H A Darith.difference.cpp28 test_bounded_ptr<Left> const a(array.begin(), array.begin(), array.end()); in tests()
29 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
35 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
41 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
47 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
53 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
58 test_bounded_ptr<Left> const a(array.end(), array.begin(), array.end()); in tests()
59 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
66 test_bounded_ptr<Left> const a(array.begin(), array.begin(), array.end()); in tests()
72 test_bounded_ptr<Left> const a(array.begin(), array.begin(), array.end()); in tests()
[all …]
H A Dcompare.equal.cpp59 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
60 test_bounded_ptr<TQual> const b(array.begin(), array.begin(), array.end()); in tests()
64 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
69 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
74 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
75 test_bounded_ptr<TQual> const b(array.end(), array.begin(), array.end()); in tests()
79 test_bounded_ptr<TQual> const a(array.end(), array.begin(), array.end()); in tests()
80 test_bounded_ptr<TQual> const b(array.end(), array.begin(), array.end()); in tests()
86 test_bounded_ptr<TQual> const a; in tests()
91 test_bounded_ptr<TQual> const a; in tests()
[all …]
H A Dcompare.order.cpp75 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
76 test_bounded_ptr<TQual> const b(array.begin(), array.begin(), array.end()); in tests()
80 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
85 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
90 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
91 test_bounded_ptr<TQual> const b(array.end(), array.begin(), array.end()); in tests()
95 test_bounded_ptr<TQual> const a(array.end(), array.begin(), array.end()); in tests()
96 test_bounded_ptr<TQual> const b(array.end(), array.begin(), array.end()); in tests()
102 test_bounded_ptr<TQual> const a; in tests()
107 test_bounded_ptr<TQual> const a; in tests()
[all …]
H A Darith.subtract.cpp34 test_bounded_ptr<QualT> res = ptr - static_cast<std::ptrdiff_t>(0); in tests()
38 test_bounded_ptr<QualT> res = ptr - 1; in tests()
42 test_bounded_ptr<QualT> res = ptr - 2; in tests()
46 test_bounded_ptr<QualT> res = ptr - 3; in tests()
50 test_bounded_ptr<QualT> res = ptr - 4; in tests()
54 test_bounded_ptr<QualT> res = ptr - 5; in tests()
72 test_bounded_ptr<QualT> res = ptr - -1; in tests()
76 test_bounded_ptr<QualT> res = ptr - -2; in tests()
80 test_bounded_ptr<QualT> res = ptr - -3; in tests()
84 test_bounded_ptr<QualT> res = ptr - -4; in tests()
[all …]
H A Dcompare.order.raw.cpp78 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
87 test_bounded_ptr<TQual> const a(array.begin() + 1, array.begin(), array.end()); in tests()
96 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
105 test_bounded_ptr<TQual> const a(array.end(), array.begin(), array.end()); in tests()
125 test_bounded_ptr<TQual> const a(array.begin(), array.begin() + 2, array.end()); in tests()
134 test_bounded_ptr<TQual> const a(array.end() - 1, array.begin(), array.end() - 2); in tests()
143 test_bounded_ptr<TQual> const a(array.end(), array.begin(), array.end() - 1); in tests()
152 test_bounded_ptr<TQual> const a(array.end() - 1, array.begin(), array.end() - 2); in tests()
159 test_bounded_ptr<TQual> a = nullptr; in tests()
164 test_bounded_ptr<TQual> a(array.end() - 1, array.begin(), array.end() - 2); in tests()
[all …]
H A Dcompare.equal.raw.cpp56 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
65 test_bounded_ptr<TQual> const a(array.begin() + 1, array.begin(), array.end()); in tests()
74 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
83 test_bounded_ptr<TQual> const a(array.end(), array.begin(), array.end()); in tests()
103 test_bounded_ptr<TQual> const a(array.begin(), array.begin() + 2, array.end()); in tests()
112 test_bounded_ptr<TQual> const a(array.end() - 1, array.begin(), array.end() - 2); in tests()
121 test_bounded_ptr<TQual> const a(array.end(), array.begin(), array.end() - 1); in tests()
130 test_bounded_ptr<TQual> const a(array.end() - 1, array.begin(), array.end() - 2); in tests()
137 test_bounded_ptr<TQual> a = nullptr; in tests()
142 test_bounded_ptr<TQual> a(array.end() - 1, array.begin(), array.end() - 2); in tests()
[all …]
H A Dctor.begin_end.cpp29 test_bounded_ptr<QualT> p(array.begin() + 0, array.begin(), array.end()); in tests()
33 test_bounded_ptr<QualT> p(array.begin() + 1, array.begin(), array.end()); in tests()
37 test_bounded_ptr<QualT> p(array.begin() + 2, array.begin(), array.end()); in tests()
41 test_bounded_ptr<QualT> p(array.begin() + 3, array.begin(), array.end()); in tests()
45 test_bounded_ptr<QualT> p(array.begin() + 4, array.begin(), array.end()); in tests()
56 test_bounded_ptr<QualT> p(array.begin() + 1, array.begin() + 3, array.end()); in tests()
64 test_bounded_ptr<QualT> p(array.begin() + 4, array.begin(), array.begin() + 3); in tests()
72 test_bounded_ptr<QualT> p(array.end(), array.begin(), array.end()); in tests()
78 test_bounded_ptr<QualT> p(nullptr, nullptr, nullptr); in tests()
95 test_bounded_ptr<Base> p(static_cast<Derived*>(array.begin()),
H A Dunsafe_discard_bounds.cpp42 test_bounded_ptr<QualT> const ptr(array.begin() + 0, array.begin(), array.end()); in tests()
51 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests()
60 test_bounded_ptr<QualT> const ptr(array.begin() + 2, array.begin(), array.end()); in tests()
69 test_bounded_ptr<QualT> const ptr(array.begin() + 4, array.begin(), array.end()); in tests()
78 test_bounded_ptr<QualT> const ptr(array.end(), array.begin(), array.end()); in tests()
87 test_bounded_ptr<QualT> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests()
96 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
105 test_bounded_ptr<QualT> ptr(array.begin(), array.begin() + 1, array.end()); in tests()
112 test_bounded_ptr<QualT> const ptr(nullptr, nullptr, nullptr); in tests()
H A Darith.add_assign.cpp43 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
49 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
55 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
61 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
67 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
85 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
91 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
97 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
103 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
109 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
[all …]
H A Darith.subtract_assign.cpp40 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
46 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
52 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
58 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
64 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
70 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
82 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
88 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
94 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
100 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
[all …]
H A Dassign.nullptr.cpp24 test_bounded_ptr<TQual> p(&obj, &obj, &obj + 1); in tests()
26 test_bounded_ptr<TQual>& ref = (p = nullptr); in tests()
33 test_bounded_ptr<TQual> p(&obj, &obj, &obj + 1); in tests()
35 test_bounded_ptr<TQual>& ref = (p = NULL); in tests()
42 test_bounded_ptr<TQual> p(&obj, &obj, &obj + 1); in tests()
44 test_bounded_ptr<TQual>& ref = (p = 0); in tests()
H A Dderef.cpp47 test_bounded_ptr<QualT> ptr(array.begin() + 0, array.begin(), array.end()); in tests()
60 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
73 test_bounded_ptr<QualT> ptr(array.begin() + 2, array.begin(), array.end()); in tests()
86 test_bounded_ptr<QualT> ptr(array.begin() + 4, array.begin(), array.end()); in tests()
167 test_bounded_ptr<void> p1;
168 test_bounded_ptr<void const> p2;
169 test_bounded_ptr<void volatile> p3;
170 test_bounded_ptr<void const volatile> p4;
H A Dreinterpret_cast.cpp40 test_bounded_ptr<From> from(array.begin() + 2, array.begin(), array.end()); in tests()
41 test_bounded_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
46 test_bounded_ptr<From> from(array.begin() + 2, array.begin(), array.end()); in tests()
47 test_bounded_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
53 test_bounded_ptr<From> from(nullptr, nullptr, nullptr); in tests()
54 test_bounded_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
H A Dsubscript.cpp47 test_bounded_ptr<QualT> ptr(array.begin() + 0, array.begin(), array.end()); in tests()
68 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
89 test_bounded_ptr<QualT> ptr(array.begin() + 2, array.begin(), array.end()); in tests()
110 test_bounded_ptr<QualT> ptr(array.begin() + 4, array.begin(), array.end()); in tests()
131 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
248 test_bounded_ptr<void> p1;
249 test_bounded_ptr<void const> p2;
250 test_bounded_ptr<void volatile> p3;
251 test_bounded_ptr<void const volatile> p4;
H A Dexample.malloc.cpp17 test_bounded_ptr<void>
22 test_bounded_ptr<void> with_bounds(p, p, end); in bounded_malloc()
27 bounded_free(test_bounded_ptr<void> ptr) in bounded_free()
53 test_bounded_ptr<SomeType> array = nullptr;
H A Ddiscard_bounds.cpp39 test_bounded_ptr<QualT> const ptr(array.begin() + 0, array.begin(), array.end()); in tests()
48 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests()
57 test_bounded_ptr<QualT> const ptr(array.begin() + 2, array.begin(), array.end()); in tests()
66 test_bounded_ptr<QualT> const ptr(array.begin() + 4, array.begin(), array.end()); in tests()
H A Dctor.default.cpp20 test_bounded_ptr<T> p; in tests()
24 test_bounded_ptr<T> p{}; in tests()
/xnu-11215/tests/safe_allocation_src/
H A Dbegin_end.cpp29 test_bounded_ptr<T> begin = array.begin(); in tests()
30 test_bounded_ptr<T> end = array.end(); in tests()
37 test_bounded_ptr<T const> begin = array.begin(); in tests()
38 test_bounded_ptr<T const> end = array.end(); in tests()
46 test_bounded_ptr<T> begin = array.begin(); in tests()
47 test_bounded_ptr<T> end = array.end(); in tests()
54 test_bounded_ptr<T const> begin = array.begin(); in tests()
55 test_bounded_ptr<T const> end = array.end(); in tests()
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()
/xnu-11215/tests/bounded_array_src/
H A Dbegin_end.cpp24 test_bounded_ptr<T> begin = array.begin(); in tests()
25 test_bounded_ptr<T> end = array.end(); in tests()
31 test_bounded_ptr<T const> begin = array.begin(); in tests()
32 test_bounded_ptr<T const> end = array.end(); in tests()
40 test_bounded_ptr<T> begin = array.begin(); in tests()
41 test_bounded_ptr<T> end = array.end(); in tests()
47 test_bounded_ptr<T const> begin = array.begin(); in tests()
48 test_bounded_ptr<T const> end = array.end(); in tests()
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/tests/bounded_array_ref_src/
H A Dctor.bounded_ptr.cpp34 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests()
51 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests()
66 test_bounded_ptr<T> ptr(&array[3], begin, end); in tests()
75 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests()
81 test_bounded_ptr<T> ptr = nullptr; in tests()
87 test_bounded_ptr<T> ptr(end, begin, end); in tests()
93 test_bounded_ptr<T> ptr(begin, begin, end); in tests()
H A Dbegin_end.cpp24 test_bounded_ptr<T> begin = view.begin(); in tests()
25 test_bounded_ptr<T> end = view.end(); in tests()
33 test_bounded_ptr<T> begin = view.begin(); in tests()
34 test_bounded_ptr<T> end = view.end(); in tests()
41 static_assert(std::is_same_v<typename AR::iterator, test_bounded_ptr<T> >); in tests()

12