Home
last modified time | relevance | path

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

/external/llvm/unittests/ADT/
DOptionalTest.cpp173 struct MoveOnly { struct
178 explicit MoveOnly(int val) : val(val) { in MoveOnly() argument
180 MoveOnly(MoveOnly&& other) { in MoveOnly() argument
184 MoveOnly &operator=(MoveOnly&& other) { in operator =() argument
189 ~MoveOnly() { in ~MoveOnly() argument
199 unsigned MoveOnly::MoveConstructions = 0;
200 unsigned MoveOnly::Destructions = 0;
201 unsigned MoveOnly::MoveAssignments = 0;
204 MoveOnly::ResetCounts(); in TEST_F()
205 Optional<MoveOnly> O; in TEST_F()
[all …]
/external/clang/test/SemaCXX/
Drval-references.cpp73 struct MoveOnly { struct
74 MoveOnly();
75 MoveOnly(const MoveOnly&) = delete; // expected-note {{candidate constructor}} \
77 MoveOnly(MoveOnly&&); // expected-note {{candidate constructor}}
78 MoveOnly(int&&); // expected-note {{candidate constructor}}
81 MoveOnly gmo;
82 MoveOnly returningNonEligible() { in returningNonEligible()
84 static MoveOnly mo; in returningNonEligible()
85 MoveOnly &r = mo; in returningNonEligible()
Dblocks.cpp73 class MoveOnly { class
75 MoveOnly();
76 MoveOnly(const MoveOnly&) = delete;
77 MoveOnly(MoveOnly&&);
81 __block MoveOnly mo; in move_block()
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
Dp19.cpp3 struct MoveOnly { struct
4 MoveOnly(MoveOnly&&);
5 MoveOnly(const MoveOnly&);
9 void test_special_member_functions(MoveOnly mo, int i) { in test_special_member_functions()
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/
Dp3-0x.cpp115 struct MoveOnly { struct
116 MoveOnly(MoveOnly&&);
119 void test(MoveOnly mo) { in test()
122 MoveOnly (&&list2)[1] = {mo}; // expected-error{{no viable conversion}} in test()
123 std::initializer_list<MoveOnly> &&list3 = {}; in test()
124 MoveOnly (&&list4)[1] = {}; // expected-error{{uninitialized}} in test()