Home
last modified time | relevance | path

Searched refs:U2 (Results 1 – 25 of 66) sorted by relevance

123

/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
H A Dmove_convert.runtime.pass.cpp40 static_assert(std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
41 static_assert(!std::is_constructible<U1, U2&>::value, ""); in test_sfinae()
47 using U2 = std::unique_ptr<A[]>; in test_sfinae() typedef
48 static_assert(std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
49 static_assert(!std::is_constructible<U2, U1&&>::value, ""); in test_sfinae()
63 using U2 = std::unique_ptr<A[], GenericDeleter<1> >; in test_sfinae() typedef
64 static_assert(!std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
68 using U2 = std::unique_ptr<A[], const Deleter<A[]>&>; in test_sfinae() typedef
69 static_assert(!std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
70 static_assert(!std::is_constructible<U2, U1&&>::value, ""); in test_sfinae()
[all …]
H A Dmove_convert.pass.cpp107 static_assert(std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
112 using U2 = std::unique_ptr<VT, GenericDeleter<1> >; in test_sfinae() typedef
113 static_assert(!std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
122 static_assert(!std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
139 static_assert(std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
184 using U2 = std::unique_ptr<VT, TD2 >; in test_deleter_value_category() typedef
185 U2 u2; in test_deleter_value_category()
192 using U2 = std::unique_ptr<VT, TD2& >; in test_deleter_value_category() typedef
193 U2 u2(nullptr, d2); in test_deleter_value_category()
199 using U2 = std::unique_ptr<VT, TD2 const& >; in test_deleter_value_category() typedef
[all …]
H A Ddefault.pass.cpp55 using U2 = std::unique_ptr<ElemType, Del&>; in test_sfinae() typedef
58 static_assert(!std::is_default_constructible<U2>::value, ""); in test_sfinae()
69 using U2 = std::unique_ptr<ElemType, Deleter<ElemType> >; in test_basic() typedef
71 static_assert(std::is_nothrow_default_constructible<U2>::value, ""); in test_basic()
H A Dnullptr.pass.cpp37 using U2 = std::unique_ptr<VT, Deleter<VT> >; in test_basic() typedef
40 static_assert(std::is_nothrow_constructible<U2, decltype(nullptr)>::value, in test_basic()
72 using U2 = std::unique_ptr<VT, Del&>; in test_sfinae() typedef
75 static_assert(!std::is_constructible<U2, decltype(nullptr)>::value, ""); in test_sfinae()
H A Dpointer.pass.cpp46 using U2 = std::unique_ptr<ValueT, Deleter<ValueT> >; in test_pointer() typedef
50 static_assert(std::is_nothrow_constructible<U2, A*>::value, ""); in test_pointer()
54 static_assert(!std::is_convertible<A*, U2>::value, ""); in test_pointer()
127 using U2 = std::unique_ptr<T, Del&>; in test_sfinae() typedef
130 static_assert(!std::is_constructible<U2, T*>::value, ""); in test_sfinae()
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/
H A Dmove_convert.pass.cpp191 U2 u2(nullptr, dsource); in doDeleterTest()
324 using U2 = std::unique_ptr<VT, TD2 >; in test_deleter_value_category() typedef
326 U2 u2; in test_deleter_value_category()
335 U2 u2; in test_deleter_value_category()
344 U2 u2; in test_deleter_value_category()
354 U2 u2(nullptr, d2); in test_deleter_value_category()
363 U2 u2(nullptr, d2); in test_deleter_value_category()
373 U2 u2(nullptr, d2); in test_deleter_value_category()
382 U2 u2(nullptr, d2); in test_deleter_value_category()
392 U2 u2(nullptr, cd2); in test_deleter_value_category()
[all …]
/llvm-project-15.0.7/clang/test/CXX/class/class.union/
H A Dp2-0x.cpp22 union U2 { union
27 template<typename T> constexpr int U2<T>::k1 = sizeof(U2<T>);
28 template<typename T> double U2<T>::k2 = 5.3;
30 static_assert(U2<int>::k1 == sizeof(int), "");
31 static_assert(U2<char>::k1 == sizeof(char), "");
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/
H A Dgcd.pass.cpp58 using U2 = std::make_unsigned_t<Input2>; in do_test() typedef
73 using Output = std::common_type_t<U1, U2>; in do_test()
74 accumulate &= test0<U1, U2, Output>(TC.x, TC.y, TC.expect); in do_test()
75 accumulate &= test0<U2, U1, Output>(TC.x, TC.y, TC.expect); in do_test()
78 using Output = std::common_type_t<S1, U2>; in do_test()
79 accumulate &= test0<S1, U2, Output>(TC.x, TC.y, TC.expect); in do_test()
80 accumulate &= test0<U2, S1, Output>(TC.x, TC.y, TC.expect); in do_test()
81 accumulate &= test0<S1, U2, Output>(-TC.x, TC.y, TC.expect); in do_test()
82 accumulate &= test0<U2, S1, Output>(TC.x, -TC.y, TC.expect); in do_test()
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/
H A Dlcm.pass.cpp55 using U2 = std::make_unsigned_t<Input2>; in do_test() typedef
70 using Output = std::common_type_t<U1, U2>; in do_test()
71 accumulate &= test0<U1, U2, Output>(TC.x, TC.y, TC.expect); in do_test()
72 accumulate &= test0<U2, U1, Output>(TC.x, TC.y, TC.expect); in do_test()
75 using Output = std::common_type_t<S1, U2>; in do_test()
76 accumulate &= test0<S1, U2, Output>(TC.x, TC.y, TC.expect); in do_test()
77 accumulate &= test0<U2, S1, Output>(TC.x, TC.y, TC.expect); in do_test()
78 accumulate &= test0<S1, U2, Output>(-TC.x, TC.y, TC.expect); in do_test()
79 accumulate &= test0<U2, S1, Output>(TC.x, -TC.y, TC.expect); in do_test()
/llvm-project-15.0.7/clang/unittests/Format/
H A DMacroCallReconstructorTest.cpp249 Matcher U2(Call2, Lex); in TEST_F() local
252 auto Chunk3 = U2.consume(")"); in TEST_F()
274 Matcher U2(Call2, Lex); in TEST_F() local
318 Matcher U2(Call2, Lex); in TEST_F() local
321 U2.consume("a *b"); in TEST_F()
322 auto Chunk2Mid = U2.consume(";"); in TEST_F()
324 auto Chunk2End = U2.consume(")"); in TEST_F()
384 Matcher U2(Call2, Lex); in TEST_F() local
393 auto Chunk2End = U2.consume(")"); in TEST_F()
504 Matcher U2(Call2, Lex); in TEST_F() local
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dmcu-struct-return.c13 union U2 { union
39 union U2 foo2(void) { return u2; } in foo2()
53 union U2 x2 = foo2(); in run()
H A Dxcore-stringtype.c154 union U2;
155 union U1{union U2 *pu2;};
157 union U2{union U3 *pu3;}; union
161 void unionType2(union U2 u2) {} in unionType2()
/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/
H A Dis_final.pass.cpp19 union U2 final { }; union
59 test_is_final <U2>(); in main()
60 test_is_not_final<U2*>(); in main()
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Darc-0x.mm137 union U2 {
139 ~U2();
186 U2 *x2;
210 U2 t2;
217 void testDestructor(U0 *u0, U1 *u1, U2 *u2, U3 *u3, S0 *s0, S1 *s1, S2 *s2) {
227 void testCopyConstructor(U0 *u0, U1 *u1, U2 *u2, U3 *u3, S0 *s0, S1 *s1, S2 *s2) {
230 U2 t2(*u2); // expected-error {{call to implicitly-deleted copy constructor}}
237 void testCopyAssignment(U0 *u0, U1 *u1, U2 *u2, U3 *u3, S0 *s0, S1 *s1, S2 *s2) {
251 void testMoveConstructor(U0 *u0, U1 *u1, U2 *u2, U3 *u3, S0 *s0, S1 *s1, S2 *s2) {
254 … U2 t2(static_cast<U2 &&>(*u2)); // expected-error {{call to implicitly-deleted copy constructor}}
[all …]
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dclass-proto-1.m27 @class U1, U2; // expected-note {{forward declaration of class here}}
34 @interface U2 @end interface
36 @interface I4 : U2 <p1,p2>
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Derr_typecheck_assign_const.cpp53 struct U2 { struct
58 const U2 u2 = U2(); // expected-note{{non-static data member 'u2' declared const here}} argument
H A Dinherit.cpp23 union U2 {}; union
25 class G : public U2 { }; // expected-error{{unions cannot be base classes}}
/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-APValue-union.cpp25 union U2 { union
49 constexpr U2 u2{}; in Test()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dx86_64-arguments-avx.cpp38 union U2 { union
44 union U2;
/llvm-project-15.0.7/clang/test/ASTMerge/struct/Inputs/
H A Dstruct2.c108 } U2; member
133 } U2; member
H A Dstruct1.c111 } U2; member
136 } U2; member
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Ddeduction-guide.cpp126 template<typename U1, typename U2> D(B<U1, U2>*); // expected-note {{candidate}}
H A Dfriend-template.cpp125 template<class U1, class U2, class U3, class T>
126 friend A<U1, U2, U3>& inner::f0(A<U1, U2, U3>&, T);
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-emplace.cpp28 template <typename U1, typename U2>
29 pair(const pair<U1, U2> &){}; in pair() argument
30 template <typename U1, typename U2>
31 pair(pair<U1, U2> &&){}; in pair() argument
288 template <typename U1, typename U2>
289 tuple(const pair<U1, U2> &) { in tuple() argument
292 template <typename U1, typename U2>
293 tuple(pair<U1, U2> &&) { in tuple() argument
/llvm-project-15.0.7/mlir/test/Dialect/Affine/
H A Dloop-permute.mlir9 func.func @permute(%U0 : index, %U1 : index, %U2 : index) {
13 affine.for %arg2 = 0 to %U2 {

123