Home
last modified time | relevance | path

Searched refs:NonDefaultConstructible (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DOptionalTest.cpp46 struct NonDefaultConstructible { struct
52 NonDefaultConstructible(const NonDefaultConstructible&) { in NonDefaultConstructible() function
55 NonDefaultConstructible &operator=(const NonDefaultConstructible&) { in operator =() argument
59 ~NonDefaultConstructible() { in ~NonDefaultConstructible() argument
84 Optional<NonDefaultConstructible> O(NonDefaultConstructible(3)); in TEST()
97 Optional<NonDefaultConstructible>(NonDefaultConstructible(3)); in TEST()
106 Optional<NonDefaultConstructible> A(NonDefaultConstructible(3)); in TEST()
125 Optional<NonDefaultConstructible> A(NonDefaultConstructible(3)); in TEST()
145 Optional<NonDefaultConstructible> A(NonDefaultConstructible(3)); in TEST()
146 Optional<NonDefaultConstructible> B(NonDefaultConstructible(4)); in TEST()
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.expl.spec/
H A Dp15.cpp3 struct NonDefaultConstructible { struct
4 NonDefaultConstructible(const NonDefaultConstructible&); // expected-note{{candidate constructor}}
17 NonDefaultConstructible X<NonDefaultConstructible, long>::member;
19 NonDefaultConstructible &test(bool b) { in test()
20 return b? X<NonDefaultConstructible, int>::member // expected-note{{instantiation}} in test()
21 : X<NonDefaultConstructible, long>::member; in test()
H A Dp1.cpp9 struct NonDefaultConstructible { struct
10 NonDefaultConstructible(int);
22 template<> void f0(NonDefaultConstructible) { } in f0() argument
24 void test_f0(NonDefaultConstructible NDC) { in test_f0()
67 NonDefaultConstructible X0<NonDefaultConstructible>::member = 17;
69 NonDefaultConstructible &get_static_member() { in get_static_member()
70 return X0<NonDefaultConstructible>::member; in get_static_member()
H A Dp2.cpp12 struct NonDefaultConstructible { struct
13 NonDefaultConstructible(int);
26 template<> void f0(NonDefaultConstructible) { } in f0() argument
28 void test_f0(NonDefaultConstructible NDC) { in test_f0()
119 NonDefaultConstructible X0<NonDefaultConstructible>::member;
128 NonDefaultConstructible &get_static_member() { in get_static_member()
129 return N0::X0<NonDefaultConstructible>::member; in get_static_member()
H A Dp2-0x.cpp9 struct NonDefaultConstructible { struct
10 NonDefaultConstructible(int);
22 template<> void f0(NonDefaultConstructible) { } in f0() argument
24 void test_f0(NonDefaultConstructible NDC) { in test_f0()
151 NonDefaultConstructible X0<NonDefaultConstructible>::member;
160 NonDefaultConstructible &get_static_member() { in get_static_member()
161 return N0::X0<NonDefaultConstructible>::member; in get_static_member()
/llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.explicit/
H A Dp1.cpp53 struct NonDefaultConstructible { // expected-note{{candidate constructor (the implicit copy constru… struct
57 NonDefaultConstructible(int); // expected-note{{candidate constructor}}
91 NonDefaultConstructible X2<NonDefaultConstructible, int>::static_member1;
94NonDefaultConstructible X2<int, NonDefaultConstructible>::static_member2; // expected-note{{instan…
/llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
H A Ddefault.pass.cpp27 struct NonDefaultConstructible { struct
28 constexpr NonDefaultConstructible(int) {} in NonDefaultConstructible() argument
47 using V = std::variant<NonDefaultConstructible, int>; in test_default_ctor_sfinae()
95 std::variant<int, NonDefaultConstructible> v; in test_default_ctor_basic()
112 using V = std::variant<int, NonDefaultConstructible>; in test_default_ctor_basic()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.take/
H A Dctor.default.pass.cpp28 struct NonDefaultConstructible : std::ranges::view_base { struct
29 NonDefaultConstructible() = delete;
44 … static_assert(!std::is_default_constructible_v<std::ranges::take_view<NonDefaultConstructible>>); in test()
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A Dalloc.pass.cpp28 struct NonDefaultConstructible { struct
29 constexpr NonDefaultConstructible() { in NonDefaultConstructible() function
33 explicit constexpr NonDefaultConstructible(int) {} in NonDefaultConstructible() function
106 using T = NonDefaultConstructible<>; in main()