| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/ |
| H A D | sortable_helpers.h | 24 TEST_CONSTEXPR TrivialSortable() : value(0) {} in TrivialSortable() 25 TEST_CONSTEXPR TrivialSortable(int v) : value(v) {} in TrivialSortable() 26 friend TEST_CONSTEXPR bool operator<(const TrivialSortable& a, const TrivialSortable& b) { 29 static TEST_CONSTEXPR bool less(const TrivialSortable& a, const TrivialSortable& b) { in less() 36 TEST_CONSTEXPR NonTrivialSortable() : value(0) {} in NonTrivialSortable() 37 TEST_CONSTEXPR NonTrivialSortable(int v) : value(v) {} in NonTrivialSortable() 38 TEST_CONSTEXPR NonTrivialSortable(const NonTrivialSortable& rhs) : value(rhs.value) {} in NonTrivialSortable() 51 TEST_CONSTEXPR TrivialSortableWithComp() : value(0) {} in TrivialSortableWithComp() 52 TEST_CONSTEXPR TrivialSortableWithComp(int v) : value(v) {} in TrivialSortableWithComp() 65 TEST_CONSTEXPR NonTrivialSortableWithComp() : value(0) {} in NonTrivialSortableWithComp() [all …]
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | test_allocator.h | 55 TEST_CONSTEXPR static const int destructed_value = -1; 56 TEST_CONSTEXPR static const int moved_value = INT_MAX; 82 TEST_CONSTEXPR test_allocator() TEST_NOEXCEPT = default; 180 TEST_CONSTEXPR int get_data() const { return data_; } in get_data() 181 TEST_CONSTEXPR int get_id() const { return id_; } in get_id() 317 TEST_CONSTEXPR int get_id() const { return id_; } in get_id() 318 TEST_CONSTEXPR int get_data() const { return data_; } in get_data() 369 TEST_CONSTEXPR Tag_X(Ctor_Tag) {} in Tag_X() 371 TEST_CONSTEXPR Tag_X(Ctor_Tag, const Tag_X&) {} in Tag_X() 373 TEST_CONSTEXPR Tag_X(Ctor_Tag, Tag_X&&) {} in Tag_X() [all …]
|
| H A D | MoveOnly.h | 21 TEST_CONSTEXPR MoveOnly(int data = 1) : data_(data) {} in data_() 31 TEST_CONSTEXPR int get() const {return data_;} in get() 33 friend TEST_CONSTEXPR bool operator==(const MoveOnly& x, const MoveOnly& y) 35 friend TEST_CONSTEXPR bool operator!=(const MoveOnly& x, const MoveOnly& y) 37 friend TEST_CONSTEXPR bool operator< (const MoveOnly& x, const MoveOnly& y) 39 friend TEST_CONSTEXPR bool operator<=(const MoveOnly& x, const MoveOnly& y) 41 friend TEST_CONSTEXPR bool operator> (const MoveOnly& x, const MoveOnly& y) 43 friend TEST_CONSTEXPR bool operator>=(const MoveOnly& x, const MoveOnly& y) 65 TEST_CONSTEXPR size_t operator()(const MoveOnly& x) const {return x.get();}
|
| H A D | make_string.h | 56 TEST_CONSTEXPR MultiStringType( in MultiStringType() 68 TEST_CONSTEXPR const char *as_ptr(const char*) const { return s_; } in as_ptr() 69 MKSTR_WCHAR_ONLY(TEST_CONSTEXPR const wchar_t *as_ptr(const wchar_t*) const { return w_; }) 74 TEST_CONSTEXPR size_t length(const char*) const { return sn_; } 75 MKSTR_WCHAR_ONLY(TEST_CONSTEXPR size_t length(const wchar_t*) const { return wn_; }) 81 TEST_CONSTEXPR operator const char*() const { return s_; } 82 MKSTR_WCHAR_ONLY(TEST_CONSTEXPR operator const wchar_t*() const { return w_; })
|
| H A D | test_iterators.h | 46 TEST_CONSTEXPR reference operator*() const {return *it_;} 84 TEST_CONSTEXPR reference operator*() const {return *it_;} 114 TEST_CONSTEXPR forward_iterator() : it_() {} in forward_iterator() 123 TEST_CONSTEXPR reference operator*() const {return *it_;} 150 TEST_CONSTEXPR bidirectional_iterator() : it_() {} in bidirectional_iterator() 159 TEST_CONSTEXPR reference operator*() const {return *it_;} 188 TEST_CONSTEXPR random_access_iterator() : it_() {} in random_access_iterator() 343 TEST_CONSTEXPR reference operator*() const {return *it_;} 344 TEST_CONSTEXPR pointer operator->() const {return it_;} 424 TEST_CONSTEXPR Iter base(Iter i) { return i; } in base() [all …]
|
| H A D | constexpr_char_traits.h | 30 static TEST_CONSTEXPR bool eq(char_type __c1, char_type __c2) TEST_NOEXCEPT in eq() 33 static TEST_CONSTEXPR bool lt(char_type __c1, char_type __c2) TEST_NOEXCEPT in lt() 43 static TEST_CONSTEXPR int_type not_eof(int_type __c) TEST_NOEXCEPT in not_eof() 46 static TEST_CONSTEXPR char_type to_char_type(int_type __c) TEST_NOEXCEPT in to_char_type() 49 static TEST_CONSTEXPR int_type to_int_type(char_type __c) TEST_NOEXCEPT in to_int_type() 52 static TEST_CONSTEXPR bool eq_int_type(int_type __c1, int_type __c2) TEST_NOEXCEPT in eq_int_type() 55 static TEST_CONSTEXPR int_type eof() TEST_NOEXCEPT in eof()
|
| H A D | asan_testing.h | 19 TEST_CONSTEXPR bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c ) in is_contiguous_container_asan_correct() 31 TEST_CONSTEXPR bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &) in is_contiguous_container_asan_correct()
|
| H A D | allocators.h | 205 TEST_CONSTEXPR MaybePOCCAAllocator() = default; 206 TEST_CONSTEXPR MaybePOCCAAllocator(int id, bool* copy_assigned_into) in MaybePOCCAAllocator() 232 TEST_CONSTEXPR int id() const { return id_; } in id() 235 …TEST_CONSTEXPR friend bool operator==(const MaybePOCCAAllocator& lhs, const MaybePOCCAAllocator<U,… 241 …TEST_CONSTEXPR friend bool operator!=(const MaybePOCCAAllocator& lhs, const MaybePOCCAAllocator<U,…
|
| /llvm-project-15.0.7/libcxx/test/libcxx/utilities/memory/pointer.conversion/ |
| H A D | to_address.pass.cpp | 22 TEST_CONSTEXPR explicit P1(int *p) : p_(p) { } in P1() 23 TEST_CONSTEXPR int *operator->() const { return p_; } in operator ->() 29 TEST_CONSTEXPR explicit P2(int *p) : p_(p) { } in P2() 30 TEST_CONSTEXPR P1 operator->() const { return p_; } in operator ->() 35 TEST_CONSTEXPR explicit P3(int *p) : p_(p) { } in P3() 41 static TEST_CONSTEXPR int *to_address(const P3& p) { return p.p_; } in to_address() 45 TEST_CONSTEXPR explicit P4(int *p) : p_(p) { } in P4() 52 static TEST_CONSTEXPR int *to_address(const P4& p) { return p.p_; } in to_address() 85 TEST_CONSTEXPR FancyPtrA(T *p) : p_(p) {} in FancyPtrA() 87 TEST_CONSTEXPR T *operator->() const { return p_; } in operator ->() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.conv/ |
| H A D | base.pass.cpp | 31 TEST_CONSTEXPR explicit MoveOnlyIterator(It it) : it_(it) {} in MoveOnlyIterator() 37 TEST_CONSTEXPR reference operator*() const { return *it_; } in operator *() 42 …friend TEST_CONSTEXPR bool operator==(const MoveOnlyIterator& x, const MoveOnlyIterator& y) {retur… in operator ==() 43 …friend TEST_CONSTEXPR bool operator!=(const MoveOnlyIterator& x, const MoveOnlyIterator& y) {retur… in operator !=() 45 friend TEST_CONSTEXPR It base(const MoveOnlyIterator& i) { return i.it_; } in base()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/algorithms/ |
| H A D | robust_against_copying_comparators.pass.cpp | 21 TEST_CONSTEXPR explicit Less(int *copies) : copies_(copies) {} in Less() 24 TEST_CONSTEXPR bool operator()(T, T) const { return false; } in operator ()() 30 TEST_CONSTEXPR explicit Equal(int *copies) : copies_(copies) {} in Equal() 33 TEST_CONSTEXPR bool operator()(T, T) const { return true; } in operator ()() 39 TEST_CONSTEXPR explicit UnaryVoid(int *copies) : copies_(copies) {} in UnaryVoid() 48 TEST_CONSTEXPR explicit UnaryTrue(int *copies) : copies_(copies) {} in UnaryTrue() 51 TEST_CONSTEXPR bool operator()(T) const { return true; } in operator ()() 57 TEST_CONSTEXPR explicit NullaryValue(int *copies) : copies_(copies) {} in NullaryValue() 60 TEST_CONSTEXPR T operator()() const { return 0; } in operator ()() 69 TEST_CONSTEXPR T operator()(T) const { return 0; } in operator ()() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.elem/ |
| H A D | arrow.pass.cpp | 67 TEST_CONSTEXPR C() : data_(1) {} in C() 69 TEST_CONSTEXPR int get() const {return data_;} in get() 71 friend TEST_CONSTEXPR bool operator==(const C& x, const C& y) in operator ==() 75 TEST_CONSTEXPR C gC;
|
| /llvm-project-15.0.7/libcxx/test/libcxx/iterators/predef.iterators/__unconstrained_reverse_iterator/reverse.iter.elem/ |
| H A D | arrow.pass.cpp | 67 TEST_CONSTEXPR C() : data_(1) {} in C() 69 TEST_CONSTEXPR int get() const {return data_;} in get() 71 friend TEST_CONSTEXPR bool operator==(const C& x, const C& y) in operator ==() 75 TEST_CONSTEXPR C gC;
|
| /llvm-project-15.0.7/libcxx/test/std/time/ |
| H A D | rep.h | 18 TEST_CONSTEXPR Rep() : data_(-1) {} in Rep() 19 explicit TEST_CONSTEXPR Rep(int i) : data_(i) {} in Rep() 21 bool TEST_CONSTEXPR operator==(int i) const {return data_ == i;} 22 bool TEST_CONSTEXPR operator==(const Rep& r) const {return data_ == r.data_;}
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.count/ |
| H A D | count_if.pass.cpp | 24 TEST_CONSTEXPR eq (int val) : v(val) {} in eq() 25 TEST_CONSTEXPR bool operator () (int v2) const { return v == v2; } in operator ()() 30 TEST_CONSTEXPR bool test_constexpr() { in test_constexpr()
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.find/ |
| H A D | find_if.pass.cpp | 24 TEST_CONSTEXPR eq (int val) : v(val) {} in eq() 25 TEST_CONSTEXPR bool operator () (int v2) const { return v == v2; } in operator ()() 30 TEST_CONSTEXPR bool test_constexpr() { in test_constexpr()
|
| H A D | find_if_not.pass.cpp | 24 TEST_CONSTEXPR ne (int val) : v(val) {} in ne() 25 TEST_CONSTEXPR bool operator () (int v2) const { return v != v2; } in operator ()() 30 TEST_CONSTEXPR bool test_constexpr() { in test_constexpr()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/array/array.cons/ |
| H A D | initialization.pass.cpp | 18 TEST_CONSTEXPR NoDefault(int) { } in NoDefault() 152 TEST_CONSTEXPR NonTrivial() { } in NonTrivial() 153 TEST_CONSTEXPR NonTrivial(NonTrivial const&) { } in NonTrivial() 157 TEST_CONSTEXPR NonEmptyNonTrivial() : i(22), j(33) { } in NonEmptyNonTrivial() 158 TEST_CONSTEXPR NonEmptyNonTrivial(NonEmptyNonTrivial const&) : i(22), j(33) { } in NonEmptyNonTrivial()
|
| H A D | implicit_copy.pass.cpp | 28 TEST_CONSTEXPR NoDefault(int) { } in NoDefault() 32 TEST_CONSTEXPR NonTrivialCopy() { } in NonTrivialCopy() 33 TEST_CONSTEXPR NonTrivialCopy(NonTrivialCopy const&) { } in NonTrivialCopy()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.memfn/ |
| H A D | member_function_const.pass.cpp | 21 TEST_CONSTEXPR char test0() const {return 'a';} in test0() 22 TEST_CONSTEXPR char test1(int) const {return 'b';} in test1() 23 TEST_CONSTEXPR char test2(int, double) const {return 'c';} in test2()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/pointer.conversion/ |
| H A D | to_address.pass.cpp | 87 TEST_CONSTEXPR FancyPtrA(T *p) : p_(p) {} in FancyPtrA() 89 TEST_CONSTEXPR T *operator->() const { return p_; } in operator ->() 94 TEST_CONSTEXPR FancyPtrB(T *p) : p_(p) {} in FancyPtrB() 101 static TEST_CONSTEXPR T *to_address(const P8::FancyPtrB<T>& p) { return p.p_; } in to_address()
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.modifiers/ |
| H A D | robust_against_adl.pass.cpp | 22 TEST_CONSTEXPR Charlike(char ch) : ch_(ch) {} in Charlike() 23 TEST_CONSTEXPR operator char() const { return ch_; } in operator char()
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/ |
| H A D | generate.pass.cpp | 25 TEST_CONSTEXPR int operator()() const {return 1;} in operator ()() 30 TEST_CONSTEXPR bool test_constexpr() { in test_constexpr()
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.replace/ |
| H A D | replace_if.pass.cpp | 25 TEST_CONSTEXPR bool equalToTwo(int v) { return v == 2; } in equalToTwo() 28 TEST_CONSTEXPR bool test_constexpr() { in test_constexpr()
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.cons/ |
| H A D | copy_alloc.pass.cpp | 24 TEST_CONSTEXPR alloc_imp() : active(true) {} in alloc_imp() 48 TEST_CONSTEXPR poca_alloc(alloc_imp *imp_) : imp (imp_) {} in poca_alloc() 51 TEST_CONSTEXPR poca_alloc(const poca_alloc<U>& other) : imp(other.imp) {} in poca_alloc()
|