/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/llvm-project/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.modifiers/ |
D | emplace.pass.cpp | 260 struct NoCopy { in test_emplace_sfinae_constraints() struct 261 NoCopy() = default; in test_emplace_sfinae_constraints() 262 NoCopy(NoCopy const&) = delete; in test_emplace_sfinae_constraints() 263 NoCopy(int) {} in test_emplace_sfinae_constraints() argument 264 NoCopy(std::initializer_list<int>, int, int) {} in test_emplace_sfinae_constraints() argument 266 static_assert(!has_emplace<NoCopy>(), ""); in test_emplace_sfinae_constraints() 267 static_assert(!has_emplace<NoCopy, int>(), ""); in test_emplace_sfinae_constraints() 268 static_assert(!has_emplace_init_list<NoCopy, int, int, int>(), ""); in test_emplace_sfinae_constraints() 269 static_assert(!has_emplace<NoCopy&>(), ""); in test_emplace_sfinae_constraints() 270 static_assert(!has_emplace<NoCopy&, int>(), ""); in test_emplace_sfinae_constraints() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/any/any.class/any.modifiers/ |
D | emplace.pass.cpp | 257 struct NoCopy { in test_emplace_sfinae_constraints() struct 258 NoCopy() = default; in test_emplace_sfinae_constraints() 259 NoCopy(NoCopy const&) = delete; in test_emplace_sfinae_constraints() 260 NoCopy(int) {} in test_emplace_sfinae_constraints() argument 261 NoCopy(std::initializer_list<int>, int, int) {} in test_emplace_sfinae_constraints() function 263 static_assert(!has_emplace<NoCopy>(), ""); in test_emplace_sfinae_constraints() 264 static_assert(!has_emplace<NoCopy, int>(), ""); in test_emplace_sfinae_constraints() 265 static_assert(!has_emplace_init_list<NoCopy, int, int, int>(), ""); in test_emplace_sfinae_constraints() 266 static_assert(!has_emplace<NoCopy&>(), ""); in test_emplace_sfinae_constraints() 267 static_assert(!has_emplace<NoCopy&, int>(), ""); in test_emplace_sfinae_constraints() [all …]
|
/external/libcxx/test/std/utilities/any/any.class/any.cons/ |
D | value.pass.cpp | 144 struct NoCopy { in test_sfinae_constraints() struct 145 NoCopy() = default; in test_sfinae_constraints() 146 NoCopy(NoCopy const&) = delete; in test_sfinae_constraints() 147 NoCopy(int) {} in test_sfinae_constraints() function 149 static_assert(!std::is_constructible<std::any, NoCopy>::value, ""); in test_sfinae_constraints() 150 static_assert(!std::is_constructible<std::any, NoCopy&>::value, ""); in test_sfinae_constraints() 151 static_assert(!std::is_convertible<NoCopy, std::any>::value, ""); in test_sfinae_constraints()
|
D | in_place_type.pass.cpp | 156 struct NoCopy { in test_ctor_sfinae() struct 157 NoCopy() = default; in test_ctor_sfinae() 158 NoCopy(NoCopy const&) = delete; in test_ctor_sfinae() 159 NoCopy(int) {} in test_ctor_sfinae() argument 160 NoCopy(std::initializer_list<int>, int) {} in test_ctor_sfinae() function 162 using Tag = std::in_place_type_t<NoCopy>; in test_ctor_sfinae() 163 using RefTag = std::in_place_type_t<NoCopy&>; in test_ctor_sfinae()
|
/external/llvm-project/libcxx/test/std/utilities/any/any.class/any.cons/ |
D | value.pass.cpp | 141 struct NoCopy { in test_sfinae_constraints() struct 142 NoCopy() = default; in test_sfinae_constraints() 143 NoCopy(NoCopy const&) = delete; in test_sfinae_constraints() 144 NoCopy(int) {} in test_sfinae_constraints() function 146 static_assert(!std::is_constructible<std::any, NoCopy>::value, ""); in test_sfinae_constraints() 147 static_assert(!std::is_constructible<std::any, NoCopy&>::value, ""); in test_sfinae_constraints() 148 static_assert(!std::is_convertible<NoCopy, std::any>::value, ""); in test_sfinae_constraints()
|
D | in_place_type.pass.cpp | 153 struct NoCopy { in test_ctor_sfinae() struct 154 NoCopy() = default; in test_ctor_sfinae() 155 NoCopy(NoCopy const&) = delete; in test_ctor_sfinae() 156 NoCopy(int) {} in test_ctor_sfinae() argument 157 NoCopy(std::initializer_list<int>, int) {} in test_ctor_sfinae() function 159 using Tag = std::in_place_type_t<NoCopy>; in test_ctor_sfinae() 160 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 | 196 struct NoCopy { in test_sfinae_constraints() struct 197 NoCopy() = default; in test_sfinae_constraints() 198 NoCopy(NoCopy const&) = delete; in test_sfinae_constraints() 199 NoCopy(NoCopy&&) = default; in test_sfinae_constraints() 201 static_assert(!std::is_assignable<std::any, NoCopy>::value, ""); in test_sfinae_constraints() 202 static_assert(!std::is_assignable<std::any, NoCopy&>::value, ""); in test_sfinae_constraints()
|
/external/llvm-project/libcxx/test/std/utilities/any/any.class/any.assign/ |
D | value.pass.cpp | 193 struct NoCopy { in test_sfinae_constraints() struct 194 NoCopy() = default; in test_sfinae_constraints() 195 NoCopy(NoCopy const&) = delete; in test_sfinae_constraints() 196 NoCopy(NoCopy&&) = default; in test_sfinae_constraints() 198 static_assert(!std::is_assignable<std::any, NoCopy>::value, ""); in test_sfinae_constraints() 199 static_assert(!std::is_assignable<std::any, NoCopy&>::value, ""); in test_sfinae_constraints()
|
/external/libchrome/base/ |
D | template_util_unittest.cc | 95 class NoCopy { class 97 NoCopy(const NoCopy&) = delete; 101 !base::is_trivially_copy_constructible<std::vector<NoCopy>>::value,
|
/external/libcxx/test/std/utilities/any/any.nonmembers/any.cast/ |
D | any_cast_pointer.pass.cpp | 151 struct NoCopy { NoCopy(NoCopy const&) = delete; }; in test_cast_non_copyable_type() struct 154 assert(std::any_cast<NoCopy>(&a) == nullptr); in test_cast_non_copyable_type() 155 assert(std::any_cast<NoCopy>(&ca) == nullptr); in test_cast_non_copyable_type()
|
/external/llvm-project/libcxx/test/std/utilities/any/any.nonmembers/any.cast/ |
D | any_cast_pointer.pass.cpp | 149 struct NoCopy { NoCopy(NoCopy const&) = delete; }; in test_cast_non_copyable_type() struct 152 assert(std::any_cast<NoCopy>(&a) == nullptr); in test_cast_non_copyable_type() 153 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/llvm-project/clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/ |
D | p1.cpp | 202 struct NoCopy { in g() struct 203 NoCopy(); in g() 204 NoCopy(const NoCopy &) = delete; in g() 208 for (int n : NoCopy()) { // ok in g()
|
/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/llvm-project/clang/test/SemaCXX/ |
D | lambda-expressions.cpp | 389 struct NoCopy { struct 390 NoCopy(int); 391 NoCopy(const NoCopy &) = delete; // expected-note {{deleted}} 394 template void f<NoCopy>(); // expected-note {{instantiation}}
|
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/ |
D | copy.pass.cpp | 41 struct NoCopy { struct 42 NoCopy(const NoCopy &) = delete; 117 using V = std::variant<int, NoCopy>; in test_copy_ctor_sfinae()
|
D | move.pass.cpp | 39 struct NoCopy { struct 40 NoCopy(const NoCopy &) = delete; 146 using V = std::variant<int, NoCopy>; in test_move_ctor_sfinae()
|
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/ |
D | copy.pass.cpp | 38 struct NoCopy { struct 39 NoCopy(const NoCopy &) = delete; 114 using V = std::variant<int, NoCopy>; in test_copy_ctor_sfinae()
|
D | move.pass.cpp | 36 struct NoCopy { struct 37 NoCopy(const NoCopy &) = delete; 143 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 | 41 struct NoCopy { struct 42 NoCopy(const NoCopy &) = delete; 43 NoCopy &operator=(const NoCopy &) = default; 191 using V = std::variant<int, NoCopy>; in test_move_assignment_sfinae()
|
D | copy.pass.cpp | 38 struct NoCopy { struct 39 NoCopy(const NoCopy &) = delete; 40 NoCopy &operator=(const NoCopy &) = default; 231 using V = std::variant<int, NoCopy>; in test_copy_assignment_sfinae()
|
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.assign/ |
D | move.pass.cpp | 33 struct NoCopy { struct 34 NoCopy(const NoCopy &) = delete; 35 NoCopy &operator=(const NoCopy &) = default; 183 using V = std::variant<int, NoCopy>; in test_move_assignment_sfinae()
|
D | copy.pass.cpp | 31 struct NoCopy { struct 32 NoCopy(const NoCopy &) = delete; 33 NoCopy &operator=(const NoCopy &) = default; 224 using V = std::variant<int, NoCopy>; in test_copy_assignment_sfinae()
|