Home
last modified time | relevance | path

Searched refs:U1 (Results 1 – 25 of 82) sorted by relevance

1234

/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()
46 using U1 = std::unique_ptr<const 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()
62 using U1 = std::unique_ptr<A[], GenericDeleter<0> >; in test_sfinae() typedef
64 static_assert(!std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
67 using U1 = std::unique_ptr<A[], 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()
111 using U1 = std::unique_ptr<VT, GenericDeleter<0> >; in test_sfinae() typedef
139 static_assert(std::is_constructible<U1, U2&&>::value, ""); in test_sfinae()
140 static_assert(std::is_constructible<U1, U3&&>::value, ""); in test_sfinae()
141 static_assert(std::is_constructible<U1, U4&&>::value, ""); in test_sfinae()
183 using U1 = std::unique_ptr<VT, TD1 >; in test_deleter_value_category() typedef
187 U1 u1(std::move(u2)); in test_deleter_value_category()
191 using U1 = std::unique_ptr<VT, TD1 >; in test_deleter_value_category() typedef
194 U1 u1(std::move(u2)); in test_deleter_value_category()
198 using U1 = std::unique_ptr<VT, TD1 >; in test_deleter_value_category() typedef
[all …]
H A Ddefault.pass.cpp54 using U1 = std::unique_ptr<ElemType, NonDefaultDeleter>; in test_sfinae() typedef
57 static_assert(!std::is_default_constructible<U1>::value, ""); in test_sfinae()
68 using U1 = std::unique_ptr<ElemType>; in test_basic() typedef
70 static_assert(std::is_nothrow_default_constructible<U1>::value, ""); in test_basic()
H A Dnullptr.pass.cpp36 using U1 = std::unique_ptr<VT>; in test_basic() typedef
38 static_assert(std::is_nothrow_constructible<U1, decltype(nullptr)>::value, in test_basic()
71 using U1 = std::unique_ptr<VT, NonDefaultDeleter>; in test_sfinae() typedef
74 static_assert(!std::is_constructible<U1, decltype(nullptr)>::value, ""); in test_sfinae()
H A Dpointer.pass.cpp45 using U1 = std::unique_ptr<ValueT>; in test_pointer() typedef
49 static_assert(std::is_nothrow_constructible<U1, A*>::value, ""); in test_pointer()
53 static_assert(!std::is_convertible<A*, U1>::value, ""); in test_pointer()
126 using U1 = std::unique_ptr<T, NonDefaultDeleter>; in test_sfinae() typedef
129 static_assert(!std::is_constructible<U1, T*>::value, ""); in test_sfinae()
/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.rel/
H A Dis_base_of_union.pass.cpp43 union U1 {}; union
54 test_is_not_base_of<U1, B>(); in main()
55 test_is_not_base_of<U1, B1>(); in main()
56 test_is_not_base_of<U1, B2>(); in main()
57 test_is_not_base_of<U1, D>(); in main()
59 test_is_not_base_of<U1, I1>(); in main()
60 test_is_not_base_of<U0, U1>(); in main()
71 test_is_not_base_of<B, U1>(); in main()
72 test_is_not_base_of<B1, U1>(); in main()
73 test_is_not_base_of<B2, U1>(); in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/
H A Dmove_convert.pass.cpp185 using U1 = std::unique_ptr<VT, DDest>; in doDeleterTest() typedef
190 U1 u1(nullptr, ddest); in doDeleterTest()
325 U1 u1; in test_deleter_value_category()
334 U1 u1(nullptr, d1); in test_deleter_value_category()
343 U1 u1(nullptr, cd1); in test_deleter_value_category()
353 U1 u1; in test_deleter_value_category()
362 U1 u1; in test_deleter_value_category()
372 U1 u1(nullptr, d1); in test_deleter_value_category()
381 U1 u1(nullptr, d1); in test_deleter_value_category()
391 U1 u1(nullptr, cd1); in test_deleter_value_category()
[all …]
/llvm-project-15.0.7/clang/test/CXX/class/class.union/
H A Dp2-0x.cpp5 union U1 { union
14 constexpr int U1::k1;
15 constexpr int U1::k2;
16 int U1::k3;
18 const double U1::k4;
19 const double U1::k5;
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dinstantiate-incomplete-typo-suggested-error-limit.cpp44 template <class U1> static constexpr bool enable_implicit() { in enable_implicit()
45 return is_same<first_type, U1>::value; in enable_implicit()
49 template <class U1,
50 typename enable_if<CheckArgs::template enable_implicit<U1>(),
52 single(U1 &&u1);
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/
H A Dgcd.pass.cpp57 using U1 = std::make_unsigned_t<Input1>; 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()
85 using Output = std::common_type_t<S2, U1>; in do_test()
86 accumulate &= test0<S2, U1, Output>(TC.x, TC.y, TC.expect); in do_test()
87 accumulate &= test0<U1, S2, Output>(TC.x, TC.y, TC.expect); in do_test()
88 accumulate &= test0<S2, U1, Output>(-TC.x, TC.y, TC.expect); in do_test()
89 accumulate &= test0<U1, S2, 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.cpp54 using U1 = std::make_unsigned_t<Input1>; 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()
82 using Output = std::common_type_t<S2, U1>; in do_test()
83 accumulate &= test0<S2, U1, Output>(TC.x, TC.y, TC.expect); in do_test()
84 accumulate &= test0<U1, S2, Output>(TC.x, TC.y, TC.expect); in do_test()
85 accumulate &= test0<S2, U1, Output>(-TC.x, TC.y, TC.expect); in do_test()
86 accumulate &= test0<U1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test()
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Darc-0x.mm122 union U1 {
126 …U1(const U1 &) = default; // expected-warning {{explicitly defaulted copy constructor is implicitl…
127 …U1(U1 &&) = default; // expected-warning {{explicitly defaulted move constructor is implicitly del…
129 …U1 & operator=(U1 &&) = default; // expected-warning {{explicitly defaulted move assignment operat…
185 U1 *x1;
209 U1 t1; // expected-error {{call to implicitly-deleted default constructor}}
217 void testDestructor(U0 *u0, U1 *u1, U2 *u2, U3 *u3, S0 *s0, S1 *s1, S2 *s2) {
229 U1 t1(*u1); // 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) {
253 … U1 t1(static_cast<U1 &&>(*u1)); // expected-error {{call to implicitly-deleted copy constructor}}
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dmcu-struct-return.c9 union U1 { union
38 union U1 foo1(void) { return u1; } in foo1()
43 struct S1 bar3(union U1 u) { return s1; } in bar3()
52 union U1 x1 = foo1(); in run()
H A Dxcore-stringtype.c155 union U1{union U2 *pu2;}; union
158 union U3{union U1 u1;};
159 union U4{union U1 u1;};
160 void unionType1(union U1 u1) {} in unionType1()
/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-APValue-anon-union.cpp25 union U1 { union
45 constexpr U1 u1a{}; in Test()
49 constexpr U1 u1b{3.1415f}; in Test()
H A Dast-dump-APValue-union.cpp18 union U1 { union
45 constexpr U1 u1{}; in Test()
/llvm-project-15.0.7/compiler-rt/lib/asan/tests/
H A Dasan_oob_test.cpp79 OOBTest<U1>(); in TEST()
120 oob_test<U1>(10, -1); in TEST()
124 oob_test<U1>(kLargeMalloc, -1); in TEST()
128 oob_test<U1>(10, 10); in TEST()
132 oob_test<U1>(kLargeMalloc, kLargeMalloc); in TEST()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DNativeInlineSiteSymbol.cpp155 CodeOffset += Annot.U1; in getLineOffset()
156 UpdateCodeOffset(Annot.U1); in getLineOffset()
159 UpdateCodeOffset(Annot.U1); in getLineOffset()
164 UpdateCodeOffset(Annot.U1); in getLineOffset()
170 CodeOffset += Annot.U1; in getLineOffset()
171 UpdateCodeOffset(Annot.U1); in getLineOffset()
175 UpdateFileOffset(Annot.U1); in getLineOffset()
H A DNativeFunctionSymbol.cpp73 CodeOffset += Annot.U1; in inlineSiteContainsAddress()
78 CodeOffset += Annot.U1; in inlineSiteContainsAddress()
85 if (OffsetInFunc >= CodeOffset && OffsetInFunc < CodeOffset + Annot.U1) in inlineSiteContainsAddress()
/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/
H A Dis_final.pass.cpp18 union U1 { }; union
57 test_is_not_final<U1>(); in main()
58 test_is_not_final<U1*>(); in main()
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dclass-proto-1.m27 @class U1, U2; // expected-note {{forward declaration of class here}}
29 @interface E3 : U1 @end // expected-error {{attempting to use the forward class 'U1' as superclass …
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DValueMapperTest.cpp34 MDNode *U1; in TEST() local
41 U1 = MDNode::replaceWithUniqued(std::move(T)); in TEST()
47 EXPECT_TRUE(U1->isResolved()); in TEST()
48 EXPECT_TRUE(U1->isUniqued()); in TEST()
49 EXPECT_EQ(U1, U0->getOperand(0)); in TEST()
50 EXPECT_EQ(U0, U1->getOperand(0)); in TEST()
56 EXPECT_EQ(U1, ValueMapper(VM).mapMDNode(*U1)); in TEST()
62 EXPECT_EQ(U1, ValueMapper(VM).mapMDNode(*U1)); in TEST()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dubsan-nullability-assign.cpp11 union U1 { union
18 U1 u; in f1()
H A Dx86_64-arguments-avx.cpp23 union U1 { union
29 union U1;
/llvm-project-15.0.7/llvm/unittests/Support/
H A DTypeNameTest.cpp19 union U1 {}; union
27 StringRef U1Name = getTypeName<N1::U1>(); in TEST()

1234