Searched refs:MoveOnly (Results 1 – 5 of 5) sorted by relevance
173 struct MoveOnly { struct178 explicit MoveOnly(int val) : val(val) { in MoveOnly() argument180 MoveOnly(MoveOnly&& other) { in MoveOnly() argument184 MoveOnly &operator=(MoveOnly&& other) { in operator =() argument189 ~MoveOnly() { in ~MoveOnly() argument199 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 …]
73 struct MoveOnly { struct74 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()
73 class MoveOnly { class75 MoveOnly();76 MoveOnly(const MoveOnly&) = delete;77 MoveOnly(MoveOnly&&);81 __block MoveOnly mo; in move_block()
3 struct MoveOnly { struct4 MoveOnly(MoveOnly&&);5 MoveOnly(const MoveOnly&);9 void test_special_member_functions(MoveOnly mo, int i) { in test_special_member_functions()
115 struct MoveOnly { struct116 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()