/external/libcxx/test/std/utilities/any/any.class/any.modifiers/ |
D | emplace.pass.cpp | 230 struct NoCopy { in test_emplace_sfinae_constraints() struct 231 NoCopy() = default; in test_emplace_sfinae_constraints() 232 NoCopy(NoCopy const&) = delete; in test_emplace_sfinae_constraints() 233 NoCopy(int) {} in test_emplace_sfinae_constraints() argument 234 NoCopy(std::initializer_list<int>, int, int) {} in test_emplace_sfinae_constraints() argument 236 static_assert(!has_emplace<NoCopy>(), ""); in test_emplace_sfinae_constraints() 237 static_assert(!has_emplace<NoCopy, int>(), ""); in test_emplace_sfinae_constraints() 238 static_assert(!has_emplace_init_list<NoCopy, int, int, int>(), ""); in test_emplace_sfinae_constraints() 239 static_assert(!has_emplace<NoCopy&>(), ""); in test_emplace_sfinae_constraints() 240 static_assert(!has_emplace<NoCopy&, int>(), ""); in test_emplace_sfinae_constraints() [all …]
|
/external/clang/test/CXX/dcl.decl/dcl.init/ |
D | p14-0x.cpp | 10 struct NoCopy { struct 11 NoCopy(); 12 NoCopy(const NoCopy &) = delete; // expected-note {{here}} 34 NoCopy nc = NoCopy(); // expected-error {{call to deleted}}
|
/external/libcxx/test/std/utilities/any/any.class/any.cons/ |
D | value.pass.cpp | 136 struct NoCopy { in test_sfinae_constraints() struct 137 NoCopy() = default; in test_sfinae_constraints() 138 NoCopy(NoCopy const&) = delete; in test_sfinae_constraints() 139 NoCopy(int) {} in test_sfinae_constraints() function 141 static_assert(!std::is_constructible<std::any, NoCopy>::value, ""); in test_sfinae_constraints() 142 static_assert(!std::is_constructible<std::any, NoCopy&>::value, ""); in test_sfinae_constraints() 143 static_assert(!std::is_convertible<NoCopy, std::any>::value, ""); in test_sfinae_constraints()
|
D | in_place_type.pass.cpp | 148 struct NoCopy { in test_ctor_sfinae() struct 149 NoCopy() = default; in test_ctor_sfinae() 150 NoCopy(NoCopy const&) = delete; in test_ctor_sfinae() 151 NoCopy(int) {} in test_ctor_sfinae() argument 152 NoCopy(std::initializer_list<int>, int) {} in test_ctor_sfinae() argument 154 using Tag = std::in_place_type_t<NoCopy>; in test_ctor_sfinae() 155 using RefTag = std::in_place_type_t<NoCopy&>; in test_ctor_sfinae()
|
/external/libcxx/test/std/utilities/any/any.class/any.assign/ |
D | value.pass.cpp | 188 struct NoCopy { in test_sfinae_constraints() struct 189 NoCopy() = default; in test_sfinae_constraints() 190 NoCopy(NoCopy const&) = delete; in test_sfinae_constraints() 191 NoCopy(NoCopy&&) = default; in test_sfinae_constraints() 193 static_assert(!std::is_assignable<std::any, NoCopy>::value, ""); in test_sfinae_constraints() 194 static_assert(!std::is_assignable<std::any, NoCopy&>::value, ""); in test_sfinae_constraints()
|
/external/libcxx/test/std/utilities/any/any.nonmembers/any.cast/ |
D | any_cast_pointer.pass.cpp | 143 struct NoCopy { NoCopy(NoCopy const&) = delete; }; in test_cast_non_copyable_type() struct 146 assert(std::any_cast<NoCopy>(&a) == nullptr); in test_cast_non_copyable_type() 147 assert(std::any_cast<NoCopy>(&ca) == nullptr); in test_cast_non_copyable_type()
|
/external/clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/ |
D | p1.cpp | 186 struct NoCopy { in g() struct 187 NoCopy(); in g() 188 NoCopy(const NoCopy &) = delete; in g() 192 for (int n : NoCopy()) { // ok in g()
|
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/ |
D | copy.pass.cpp | 32 struct NoCopy { struct 33 NoCopy(const NoCopy &) = delete; 80 using V = std::variant<int, NoCopy>; in test_copy_ctor_sfinae()
|
D | move.pass.cpp | 30 struct NoCopy { struct 31 NoCopy(const NoCopy &) = delete; 109 using V = std::variant<int, NoCopy>; in test_move_ctor_sfinae()
|
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/ |
D | move.pass.cpp | 28 struct NoCopy { struct 29 NoCopy(const NoCopy &) = delete; 30 NoCopy &operator=(const NoCopy &) = default; 126 using V = std::variant<int, NoCopy>; in test_move_assignment_sfinae()
|
D | copy.pass.cpp | 26 struct NoCopy { struct 27 NoCopy(const NoCopy &) = delete; 28 NoCopy &operator=(const NoCopy &) = default; 173 using V = std::variant<int, NoCopy>; in test_copy_assignment_sfinae()
|
/external/clang/test/SemaCXX/ |
D | lambda-expressions.cpp | 353 struct NoCopy { struct 354 NoCopy(int); 355 NoCopy(const NoCopy &) = delete; // expected-note {{deleted}} 358 template void f<NoCopy>(); // expected-note {{instantiation}}
|
/external/clang/test/Analysis/ |
D | malloc.mm | 122 // Test CF/NS...NoCopy. PR12100: Pointers can escape when custom deallocators are provided.
|