Home
last modified time | relevance | path

Searched refs:Uncopyable (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dunknown-anytype.mm27 struct Uncopyable {
28 Uncopyable();
30 Uncopyable(const Uncopyable &); // expected-note {{declared private here}}
34 Uncopyable v;
39 Uncopyable v;
40 [obj test_c: (const Uncopyable&) v];
/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.auto.deduct/
H A Dp2.cpp77 constexpr struct Uncopyable { struct
78 constexpr explicit Uncopyable(int) {} in Uncopyable() function
79 constexpr Uncopyable(Uncopyable &&) = delete;
80 } u = auto(Uncopyable(auto(Uncopyable(42))));
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dundefined-internal.cpp119 struct Uncopyable { struct
120 Uncopyable() {} in Uncopyable() function
122 Uncopyable(const Uncopyable&); // expected-note {{declared private here}}
125 void f(const Uncopyable&) {} in f() argument
127 f(Uncopyable()); in test()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DFunctionExtrasTest.cpp171 struct Uncopyable { in TEST() struct
172 Uncopyable() = default; in TEST()
173 Uncopyable(const Uncopyable &) = delete; in TEST()
175 unique_function<void(const Uncopyable &)> UncopyableF = in TEST()
176 [](const Uncopyable &) {}; in TEST() argument
177 UncopyableF(Uncopyable()); in TEST()
178 Uncopyable X; in TEST()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/
H A Dranges_partition_copy.pass.cpp75 struct Uncopyable { struct
76 Uncopyable(int&&);
77 Uncopyable(const int&) = delete;
80 static_assert(!HasPartitionCopyIter<int*, int*, Uncopyable*>);
82 static_assert(!HasPartitionCopyIter<int*, int*, int*, Uncopyable*>);
115 static_assert(!HasPartitionCopyRange<R<int*>, Uncopyable*>);
117 static_assert(!HasPartitionCopyRange<R<int*>, int*, Uncopyable*>);