Home
last modified time | relevance | path

Searched refs:Expect (Results 1 – 25 of 102) sorted by relevance

12345

/llvm-project-15.0.7/libcxx/test/libcxx/utilities/function.objects/func.require/
H A Dbullet_4_5_6.pass.cpp140 template <class Expect, class Fn, class T>
154 template <class Expect, class Fn, class T>
162 template <class Expect, class Fn, class T>
164 runTest<Expect&>(M, C_<T &>(obj), expect); in runTestNoPropDispatch()
165 runTest<Expect&>(M, C_<T const&>(obj), expect); in runTestNoPropDispatch()
166 runTest<Expect&>(M, C_<T volatile&>(obj), expect); in runTestNoPropDispatch()
176 template <class Expect, class Fn, class T>
179 decltype(std::__invoke(M, obj)), Expect in runTest()
181 Expect e = std::__invoke(M, obj); in runTest()
185 template <class Expect, class Fn, class T>
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/
H A Dbind_return_type.pass.cpp48 template <class Expect, class Fn>
52 auto ret_r = std::bind<Expect>(func, _1); in do_test()
61 static_assert(std::is_same<Ret, Expect>::value, ""); in do_test()
62 static_assert(std::is_same<Ret2, Expect>::value, ""); in do_test()
67 Expect exp2 = ret(101, 102); in do_test()
68 Expect exp_r = ret_r(100); in do_test()
69 Expect exp_r2 = ret_r(101, 102); in do_test()
76 if ((std::is_reference<Expect>::value)) { in do_test()
96 template <class Expect, class Fn>
99 auto ret = std::bind<Expect>(func, _1); in do_test_r()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_mutexset_test.cpp32 Expect(mset, 0, 1, true, 2, 1); in TEST()
39 Expect(mset, 0, 3, true, 4, 1); in TEST()
40 Expect(mset, 1, 5, false, 6, 1); in TEST()
51 Expect(mset, 0, 1, true, 2, 1); in TEST()
55 Expect(mset, 0, 1, true, 2, 2); in TEST()
59 Expect(mset, 0, 1, true, 2, 1); in TEST()
85 Expect(mset, 0, 3, true, 4, 2); in TEST()
95 Expect(mset, i, i, true, i + 1, 1); in TEST()
103 Expect(mset, i, i, true, i + 1, 2); in TEST()
120 Expect(mset, i, 100, true, 200, 1); in TEST()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/
H A Dsource.pass.cpp48 const std::size_t SSize = StrEnd(Expect) - Expect; in RunTestCase()
61 assert(p.native() == Expect); in RunTestCase()
73 assert(p.native() == Expect); in RunTestCase()
87 assert(p.native() == Expect); in RunTestCase()
99 assert(p.native() == Expect); in RunTestCase()
114 assert(p.native() == Expect); in RunTestCase()
124 assert(p.native() == Expect); in RunTestCase()
134 assert(p.native() == Expect); in RunTestCase()
149 assert(p.native() == Expect); in RunTestCase()
160 assert(p.native() == Expect); in RunTestCase()
[all …]
/llvm-project-15.0.7/llvm/unittests/tools/llvm-profgen/
H A DContextCompressionTest.cpp17 SmallVector<std::string, 16> Expect = {"a", "b", "c"}; in TEST() local
19 EXPECT_TRUE(std::equal(Context.begin(), Context.end(), Expect.begin())); in TEST()
25 SmallVector<std::string, 16> Expect = {"m", "a", "b", "c", "d"}; in TEST() local
27 EXPECT_TRUE(std::equal(Context.begin(), Context.end(), Expect.begin())); in TEST()
33 SmallVector<std::string, 16> Expect = {"m", "a", "b", "c", in TEST() local
36 EXPECT_TRUE(std::equal(Context.begin(), Context.end(), Expect.begin())); in TEST()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/
H A Dsource.pass.cpp37 const fs::path::value_type* Expect = MS; in RunTestCaseImpl() local
41 const std::size_t SSize = StrEnd(Expect) - Expect; in RunTestCaseImpl()
47 assert(p.native() == Expect); in RunTestCaseImpl()
54 assert(p.native() == Expect); in RunTestCaseImpl()
61 assert(p.native() == Expect); in RunTestCaseImpl()
66 assert(p.native() == Expect); in RunTestCaseImpl()
73 assert(p.native() == Expect); in RunTestCaseImpl()
79 assert(p.native() == Expect); in RunTestCaseImpl()
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.invoke/
H A Dinvoke_constexpr.pass.cpp83 template <class Signature, class Expect, class Functor>
96 static_assert((std::is_same<DeducedReturnType, Expect>::value), ""); in test_b12()
101 static_assert((std::is_same<ResultOfReturnType, Expect>::value), ""); in test_b12()
109 template <class Expect, class Functor>
119 static_assert((std::is_same<DeducedReturnType, Expect>::value), ""); in test_b34()
124 static_assert((std::is_same<ResultOfReturnType, Expect>::value), ""); in test_b34()
132 template <class Expect, class Functor>
140 static_assert((std::is_same<DeducedReturnType, Expect>::value), ""); in test_b5()
145 static_assert((std::is_same<ResultOfReturnType, Expect>::value), ""); in test_b5()
H A Dinvoke.pass.cpp86 template <class Signature, class Expect, class Functor>
99 static_assert((std::is_same<DeducedReturnType, Expect>::value), ""); in test_b12()
104 static_assert((std::is_same<ResultOfReturnType, Expect>::value), ""); in test_b12()
112 template <class Expect, class Functor>
122 static_assert((std::is_same<DeducedReturnType, Expect>::value), ""); in test_b34()
127 static_assert((std::is_same<ResultOfReturnType, Expect>::value), ""); in test_b34()
135 template <class Expect, class Functor>
143 static_assert((std::is_same<DeducedReturnType, Expect>::value), ""); in test_b5()
148 static_assert((std::is_same<ResultOfReturnType, Expect>::value), ""); in test_b5()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dtailccbyval64.ll5 ; Expect the entry point.
8 ; Expect 2 rep;movs because of tail call byval lowering.
17 ; Expect argument 4 to be moved directly to register edx.
20 ; Expect argument 6 to be moved directly to register r8.
23 ; Expect not call but jmp to @tailcallee.
26 ; Expect the trailer.
H A Dtailcallbyval64.ll5 ; Expect the entry point.
8 ; Expect 2 rep;movs because of tail call byval lowering.
17 ; Expect argument 4 to be moved directly to register edx.
20 ; Expect argument 6 to be moved directly to register r8.
23 ; Expect not call but jmp to @tailcallee.
26 ; Expect the trailer.
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DGtestMatchers.cpp32 Expect, enumerator
61 case MacroType::Expect: in getMacroTypeName()
105 case MacroType::Expect: in getSpecSetterName()
198 return gtestComparisonInternal(MacroType::Expect, Cmp, Left, Right); in gtestExpect()
208 return gtestThatInternal(MacroType::Expect, Actual, Matcher); in gtestExpectThat()
225 return gtestCallInternal(MacroType::Expect, MockObject, MockMethodName, Args); in gtestExpectCall()
230 return gtestCallInternal(MacroType::Expect, MockCall, Args); in gtestExpectCall()
/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
H A Dcommon_type.pass.cpp127 template <class T, class U, class Expect>
132 static_assert((std::is_same<typename std::common_type<T, U>::type, Expect>::value), ""); in test_bullet_three_one_imp()
163 typedef void Expect; in test_bullet_three_one() typedef
164 static_assert((std::is_same<std::common_type<T1, T1>::type, Expect>::value), ""); in test_bullet_three_one()
169 typedef int const* Expect; in test_bullet_three_one() typedef
170 static_assert((std::is_same<std::common_type<T1, T1>::type, Expect>::value), ""); in test_bullet_three_one()
191 typedef TernaryOp<T1, T2>::type Expect; in test_bullet_three_three() typedef
192 static_assert((std::is_same<std::common_type<T1, T2>::type, Expect>::value), ""); in test_bullet_three_three()
193 static_assert((std::is_same<std::common_type<T2, T1>::type, Expect>::value), ""); in test_bullet_three_three()
212 typedef void Expect; in test_bullet_three_three() typedef
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DArgumentCommentCheck.cpp187 static bool looksLikeExpectMethod(const CXXMethodDecl *Expect) { in looksLikeExpectMethod() argument
188 return Expect != nullptr && Expect->getLocation().isMacroID() && in looksLikeExpectMethod()
189 Expect->getNameInfo().getName().isIdentifier() && in looksLikeExpectMethod()
190 Expect->getName().startswith("gmock_"); in looksLikeExpectMethod()
193 const CXXMethodDecl *Expect) { in areMockAndExpectMethods() argument
194 assert(looksLikeExpectMethod(Expect)); in areMockAndExpectMethods()
195 return Mock != nullptr && Mock->getNextDeclInContext() == Expect && in areMockAndExpectMethods()
196 Mock->getNumParams() == Expect->getNumParams() && in areMockAndExpectMethods()
199 Mock->getName() == Expect->getName().substr(strlen("gmock_")); in areMockAndExpectMethods()
/llvm-project-15.0.7/libcxx/test/libcxx/numerics/
H A Dclamp_to_integral.pass.cpp27 IntT Expect; in test() member
42 assert(res == TC.Expect); in test()
59 IntT Expect; in test_float() member
72 assert(res == TC.Expect); in test_float()
/llvm-project-15.0.7/llvm/test/DebugInfo/COFF/
H A Dclass-options-common.ll16 ; class EmptyClass {}; // Expect: CO = ForwardReference | HasUniqueName
17 ; // Expect: CO = HasUniqueName
28 ; // Expect: CO = HasUniqueName
49 ; // Expect: CO = HasUniqueName
61 ; // Expect: CO = HasUniqueName
64 ; struct Foo { // Expect: CO = ForwardReference | HasUniqueName
65 ; // Expect: CO = HasUniqueName
71 ; struct Bar { // Expect: CO = ForwardReference | HasUniqueName
77 ; // Expect: CO = HasUniqueName
90 ; // Expect: CO = HasUniqueName | Nested | Scoped
[all …]
/llvm-project-15.0.7/llvm/utils/unittest/googlemock/src/
H A Dgmock-cardinalities.cc58 internal::Expect(false, __FILE__, __LINE__, ss.str()); in BetweenCardinalityImpl()
62 internal::Expect(false, __FILE__, __LINE__, ss.str()); in BetweenCardinalityImpl()
67 internal::Expect(false, __FILE__, __LINE__, ss.str()); in BetweenCardinalityImpl()
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/
H A Dvoid_handle.pass.cpp37 template <class Expect, class T, class ...Args>
40 static_assert(std::is_same<P, Expect>::value, ""); in check_type()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/
H A Dvoid_handle.pass.cpp39 template <class Expect, class T, class ...Args>
42 static_assert(std::is_same<P, Expect>::value, ""); in check_type()
/llvm-project-15.0.7/llvm/test/Instrumentation/MemorySanitizer/
H A Dcheck-constant-shadow.ll21 ; Expect 2 stores: one for the shadow (0), one for the value (42), but no origin.
38 ; Expect 3 stores: shadow, value and origin.
39 ; Expect no icmp(s): everything here is unconditional.
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/
H A Dtuple_size_v.pass.cpp21 template <class Tuple, int Expect>
24 static_assert(std::tuple_size_v<Tuple> == Expect, ""); in test()
/llvm-project-15.0.7/libcxx/test/std/language.support/cmp/cmp.common/
H A Dcommon_comparison_category.pass.cpp25 template <class Expect, class ...Args>
30 static_assert(std::is_same<CatT, Expect>::value, "expected different category"); in test_cat()
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.traits/
H A Dpromise_type.pass.cpp49 template <class Expect, class T, class ...Args>
53 static_assert(std::is_same<typename Traits::promise_type, Expect>::value, ""); in check_type()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.traits/
H A Dpromise_type.pass.cpp51 template <class Expect, class T, class ...Args>
55 static_assert(std::is_same<typename Traits::promise_type, Expect>::value, ""); in check_type()
/llvm-project-15.0.7/llvm/test/Transforms/EarlyCSE/
H A Dmasked-intrinsics-unequal-masks.ll12 ; Expect the second load to be removed.
26 ; Expect the second load to remain.
41 ; Expect the second load to remain.
59 ; Expect the first store to be removed.
71 ; Expect both stores to remain.
87 ; Expect the store to be removed.
99 ; Expect the store to remain.
115 ; Expect the load to be removed.
127 ; Expect the load to remain.
140 ; Expect the load to remain.
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/
H A Dpath.compare.pass.cpp157 int Expect; in test_compare_elements() member
181 assert(ExpectCmp == TC.Expect); in test_compare_elements()
183 assert(GotCmp == TC.Expect); in test_compare_elements()

12345