| /llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/ |
| H A D | gcd.pass.cpp | 63 accumulate &= test0<S1, S2, Output>(TC.x, TC.y, TC.expect); in do_test() 64 accumulate &= test0<S1, S2, Output>(-TC.x, TC.y, TC.expect); in do_test() 65 accumulate &= test0<S1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test() 66 accumulate &= test0<S1, S2, Output>(-TC.x, -TC.y, TC.expect); in do_test() 67 accumulate &= test0<S2, S1, Output>(TC.x, TC.y, TC.expect); in do_test() 68 accumulate &= test0<S2, S1, Output>(-TC.x, TC.y, TC.expect); in do_test() 69 accumulate &= test0<S2, S1, Output>(TC.x, -TC.y, TC.expect); 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() 79 accumulate &= test0<S1, U2, Output>(TC.x, TC.y, TC.expect); in do_test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/ |
| H A D | lcm.pass.cpp | 60 accumulate &= test0<S1, S2, Output>(TC.x, TC.y, TC.expect); in do_test() 61 accumulate &= test0<S1, S2, Output>(-TC.x, TC.y, TC.expect); in do_test() 62 accumulate &= test0<S1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test() 63 accumulate &= test0<S1, S2, Output>(-TC.x, -TC.y, TC.expect); in do_test() 64 accumulate &= test0<S2, S1, Output>(TC.x, TC.y, TC.expect); in do_test() 65 accumulate &= test0<S2, S1, Output>(-TC.x, TC.y, TC.expect); in do_test() 66 accumulate &= test0<S2, S1, Output>(TC.x, -TC.y, TC.expect); 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() 76 accumulate &= test0<S1, U2, Output>(TC.x, TC.y, TC.expect); in do_test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/ |
| H A D | path.decompose.pass.cpp | 149 for (auto const & TC : PathTestCases) { in decompPathTest() local 150 fs::path p(TC.raw); in decompPathTest() 151 assert(p == TC.raw); in decompPathTest() 153 assert(p.root_path() == TC.root_path); in decompPathTest() 159 assert(p.root_name() == TC.root_name); in decompPathTest() 171 assert(p.filename() == TC.filename); in decompPathTest() 239 fs::path p(TC.raw); in decompFilenameTest() 240 assert(p == TC.raw); in decompFilenameTest() 243 assert(p.filename() == TC.filename); in decompFilenameTest() 246 assert(p.stem() == TC.stem); in decompFilenameTest() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/ |
| H A D | path.concat.pass.cpp | 95 const Ptr L = TC.lhs; in doConcatSourceAllocTest() 96 const Ptr R = TC.rhs; in doConcatSourceAllocTest() 97 const Ptr E = TC.expect; in doConcatSourceAllocTest() 186 const Ptr L = TC.lhs; in doConcatSourceTest() 187 const Ptr R = TC.rhs; in doConcatSourceTest() 188 const Ptr E = TC.expect; in doConcatSourceTest() 270 const Ptr RStr = TC.rhs; in doConcatECharTest() 272 const Ptr L = TC.lhs; in doConcatECharTest() 274 const Ptr E = TC.expect; in doConcatECharTest() 375 const char* E = TC.expect; in main() [all …]
|
| H A D | path.compare.pass.cpp | 85 for (auto const & TC : CompareTestCases) { in test_compare_basic() local 86 const path p1(TC.LHS); in test_compare_basic() 87 const path p2(TC.RHS); in test_compare_basic() 88 std::string RHS(TC.RHS); in test_compare_basic() 92 const int E = TC.expect; in test_compare_basic() 177 for (auto &TC : TestCases) { in test_compare_elements() local 178 fs::path LHS = BuildPath(TC.LHSElements); in test_compare_elements() 179 fs::path RHS = BuildPath(TC.RHSElements); in test_compare_elements() 180 const int ExpectCmp = CompareElements(TC.LHSElements, TC.RHSElements); in test_compare_elements() 181 assert(ExpectCmp == TC.Expect); in test_compare_elements() [all …]
|
| H A D | path.append.pass.cpp | 133 const Ptr L = TC.lhs; in doAppendSourceAllocTest() 134 Str RShort = (Ptr)TC.rhs; in doAppendSourceAllocTest() 242 const Ptr L = TC.lhs; in doAppendSourceTest() 243 const Ptr R = TC.rhs; in doAppendSourceTest() 244 const Ptr E = TC.expected_result(); in doAppendSourceTest() 378 for (auto const & TC : Cases) { in main() local 380 const char* LHS_In = TC.lhs; in main() 381 const char* RHS_In = TC.rhs; in main() 388 doAppendSourceTest<char> (TC); in main() 390 doAppendSourceTest<wchar_t> (TC); in main() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/cmp/cmp.weakord/ |
| H A D | weakord.pass.cpp | 100 for (auto TC : TestCases) { in test_constexpr() local 101 auto V = TC.Value; in test_constexpr() 102 assert((V == 0) == TC.ExpectEq); in test_constexpr() 103 assert((0 == V) == TC.ExpectEq); in test_constexpr() 104 assert((V != 0) == TC.ExpectNeq); in test_constexpr() 109 assert((V <= 0) == (TC.ExpectLess || TC.ExpectEq)); in test_constexpr() 110 assert((V >= 0) == (TC.ExpectGreater || TC.ExpectEq)); in test_constexpr() 114 assert((0 <= V) == (TC.ExpectGreater || TC.ExpectEq)); in test_constexpr() 115 assert((0 >= V) == (TC.ExpectLess || TC.ExpectEq)); in test_constexpr() 137 for (auto TC : SpaceshipTestCases) in test_constexpr() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/cmp/cmp.partialord/ |
| H A D | partialord.pass.cpp | 82 for (auto TC : TestCases) { in test_constexpr() local 83 auto V = TC.Value; in test_constexpr() 84 assert((V == 0) == TC.ExpectEq); in test_constexpr() 85 assert((0 == V) == TC.ExpectEq); in test_constexpr() 86 assert((V != 0) == TC.ExpectNeq); in test_constexpr() 91 assert((V <= 0) == (TC.ExpectLess || TC.ExpectEq)); in test_constexpr() 92 assert((V >= 0) == (TC.ExpectGreater || TC.ExpectEq)); in test_constexpr() 96 assert((0 <= V) == (TC.ExpectGreater || TC.ExpectEq)); in test_constexpr() 97 assert((0 >= V) == (TC.ExpectLess || TC.ExpectEq)); in test_constexpr() 121 for (auto TC : SpaceshipTestCases) in test_constexpr() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/cmp/cmp.strongord/ |
| H A D | strongord.pass.cpp | 121 for (auto TC : TestCases) { in test_constexpr() local 122 auto V = TC.Value; in test_constexpr() 123 assert((V == 0) == TC.ExpectEq); in test_constexpr() 124 assert((0 == V) == TC.ExpectEq); in test_constexpr() 125 assert((V != 0) == TC.ExpectNeq); in test_constexpr() 130 assert((V <= 0) == (TC.ExpectLess || TC.ExpectEq)); in test_constexpr() 131 assert((V >= 0) == (TC.ExpectGreater || TC.ExpectEq)); in test_constexpr() 135 assert((0 <= V) == (TC.ExpectGreater || TC.ExpectEq)); in test_constexpr() 136 assert((0 >= V) == (TC.ExpectLess || TC.ExpectEq)); in test_constexpr() 158 for (auto TC : SpaceshipTestCases) in test_constexpr() local [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | coroutines-exp-namespace.cpp | 1104 auto TC = co_yield 0; in test_qual() local 1111 auto TC = co_yield 0; in test_asserts() local 1119 auto TC = co_yield 0; in test_qual() local 1124 auto TC = co_yield 0; in test_qual() local 1129 auto TC = co_yield 0; in test_ref_qual() local 1133 auto TC = co_yield 0; in test_ref_qual() local 1137 auto TC = co_yield 0; in test_ref_qual() local 1141 auto TC = co_yield 0; in test_ref_qual() local 1146 auto TC = co_yield 0; in test_args() local 1150 auto TC = co_yield 0; in test_args() local [all …]
|
| H A D | coroutines.cpp | 1125 auto TC = co_yield 0; in test_qual() local 1132 auto TC = co_yield 0; in test_asserts() local 1140 auto TC = co_yield 0; in test_qual() local 1145 auto TC = co_yield 0; in test_qual() local 1150 auto TC = co_yield 0; in test_ref_qual() local 1154 auto TC = co_yield 0; in test_ref_qual() local 1158 auto TC = co_yield 0; in test_ref_qual() local 1162 auto TC = co_yield 0; in test_ref_qual() local 1167 auto TC = co_yield 0; in test_args() local 1171 auto TC = co_yield 0; in test_args() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/ |
| H A D | temp_directory_path.pass.cpp | 84 for (auto& TC : cases) { in TEST_CASE() local 85 PutEnv(TC.name, TC.p); in TEST_CASE() 87 for (auto& TC : cases) { in TEST_CASE() local 91 TEST_CHECK(ret == TC.p); in TEST_CASE() 96 PutEnv(TC.name, dne); in TEST_CASE() 105 PutEnv(TC.name, file); in TEST_CASE() 123 PutEnv(TC.name, TC.p / "does_not_exist"); in TEST_CASE() 131 UnsetEnv(TC.name); in TEST_CASE() 146 for (auto& TC : ignored_cases) { in TEST_CASE() local 148 PutEnv(TC.name, TC.p); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/ |
| H A D | replace_extension.pass.cpp | 57 for (auto const & TC : TestCases) { in main() local 58 path p(TC.value); in main() 59 assert(p == TC.value); in main() 60 path& Ref = (p.replace_extension(TC.extension)); in main() 61 assert(p == TC.expect); in main() 64 for (auto const& TC : NoArgCases) { in main() local 65 path p(TC.value); in main() 66 assert(p == TC.value); in main() 68 assert(p == TC.expect); in main()
|
| H A D | replace_filename.pass.cpp | 60 for (auto const & TC : TestCases) { in main() local 61 path p(TC.value); in main() 62 assert(p == TC.value); in main() 63 path& Ref = p.replace_filename(TC.filename); in main() 64 assert(p == TC.expect); in main() 68 path p2(TC.value); in main() 69 path replace(TC.filename); in main()
|
| H A D | swap.pass.cpp | 52 for (auto const & TC : TestCases) { in main() local 53 path p1(TC.value1); in main() 54 path p2(TC.value2); in main() 59 assert(p1 == TC.value2); in main() 60 assert(p2 == TC.value1); in main() 65 assert(p1 == TC.value1); in main() 66 assert(p2 == TC.value2); in main()
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | CommonArgs.cpp | 217 const Driver &D = TC.getDriver(); in AddLinkerInputs() 225 if (!TC.isCrossCompiling()) in AddLinkerInputs() 818 if (TC.getTriple().isOSSolaris()) in getAsNeededOption() 838 if (!TC.getTriple().isOSFreeBSD() && !TC.getTriple().isOSNetBSD() && in linkSanitizerRuntimeDeps() 845 TC.getTriple().isOSOpenBSD()) in linkSanitizerRuntimeDeps() 850 if (TC.getTriple().isOSLinux() && !TC.getTriple().isAndroid() && in linkSanitizerRuntimeDeps() 851 !TC.getTriple().isMusl()) in linkSanitizerRuntimeDeps() 1485 TC.getTriple().isAndroid()) in getLibGccType() 1510 TC.getTriple().isOSIAMCU() || TC.getTriple().isOSBinFormatWasm() || in AddUnwindLibrary() 1518 !TC.getTriple().isOSCygMing() && !TC.getTriple().isOSAIX(); in AddUnwindLibrary() [all …]
|
| H A D | CommonArgs.h | 26 void AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs, 30 void addLinkerCompressDebugSectionsOption(const ToolChain &TC, 39 void linkSanitizerRuntimeDeps(const ToolChain &TC, 45 void linkXRayRuntimeDeps(const ToolChain &TC, 48 void AddRunTimeLibs(const ToolChain &TC, const Driver &D, 99 unsigned ParseFunctionAlignment(const ToolChain &TC, 102 unsigned ParseDebugDefaultVersion(const ToolChain &TC, 109 void addOpenMPRuntimeSpecificRPath(const ToolChain &TC, 114 void addOpenMPRuntimeLibraryPath(const ToolChain &TC, 124 void addFortranRuntimeLibs(const ToolChain &TC, [all …]
|
| H A D | CrossWindows.cpp | 29 const auto &TC = in ConstructJob() local 34 switch (TC.getArch()) { in ConstructJob() 68 const auto &TC = in ConstructJob() local 70 const llvm::Triple &T = TC.getTriple(); in ConstructJob() 71 const Driver &D = TC.getDriver(); in ConstructJob() 95 switch (TC.getArch()) { in ConstructJob() 167 TC.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 170 if (TC.ShouldLinkCXXStdlib(Args)) { in ConstructJob() 175 TC.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob() 184 AddRunTimeLibs(TC, D, CmdArgs, Args); in ConstructJob() [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/numerics/ |
| H A D | clamp_to_integral.pass.cpp | 40 for (TestCase TC : TestCases) { in test() local 41 auto res = std::__clamp_to_integral<IntT>(TC.Input); in test() 42 assert(res == TC.Expect); in test() 43 if (TC.IsRepresentable) { in test() 44 auto other = static_cast<IntT>(std::trunc(TC.Input)); in test() 70 for (TestCase TC : TestCases) { in test_float() local 71 auto res = std::__clamp_to_integral<IntT>(TC.Input); in test_float() 72 assert(res == TC.Expect); in test_float() 73 if (TC.IsRepresentable) { in test_float() 74 auto other = static_cast<IntT>(std::trunc(TC.Input)); in test_float()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/ |
| H A D | permissions.pass.cpp | 122 for (auto const& TC : cases) { in TEST_CASE() local 123 TEST_CHECK(status(TC.p).permissions() != TC.expected); in TEST_CASE() 126 permissions(TC.p, TC.set_perms, TC.opts, ec); in TEST_CASE() 128 auto pp = status(TC.p).permissions(); in TEST_CASE() 129 TEST_CHECK(pp == NormalizeExpectedPerms(TC.expected)); in TEST_CASE() 131 if (TC.opts == perm_options::replace) { in TEST_CASE() 133 permissions(TC.p, TC.set_perms, ec); in TEST_CASE() 135 auto pp = status(TC.p).permissions(); in TEST_CASE() 164 for (auto const& TC : cases) { in TEST_CASE() local 168 const auto expected_link_perms = TC.expected; in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.proximate/ |
| H A D | proximate.pass.cpp | 136 for (auto& TC : TestCases) { in TEST_CASE() local 139 fs::path p = TC.input; in TEST_CASE() 140 const fs::path output = fs::proximate(p, TC.base, ec); in TEST_CASE() 141 fs::path expect = TC.expect; in TEST_CASE() 149 ID, TC.input.string().c_str(), TC.base.string().c_str(), in TEST_CASE() 154 const path canon_input = fs::weakly_canonical(TC.input); in TEST_CASE() 155 const path canon_base = fs::weakly_canonical(TC.base); in TEST_CASE() 165 ID, TC.input.string().c_str(), TC.base.string().c_str(), in TEST_CASE()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/ |
| H A D | lexically_relative_and_proximate.pass.cpp | 63 for (auto& TC : TestCases) { in main() local 65 const fs::path p(TC.input); in main() 66 const fs::path output = p.lexically_relative(TC.base); in main() 67 fs::path expect(TC.expect); in main() 78 ID, Testing, TC.input.c_str(), TC.base.c_str(), in main() 83 const fs::path proximate_output = p.lexically_proximate(TC.base); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/ |
| H A D | comparisons.pass.cpp | 72 for (auto const& TC : TestCases) { in test_comparisons_simple() local 73 const directory_entry L(TC.first); in test_comparisons_simple() 74 const directory_entry R(TC.second); in test_comparisons_simple() 75 TestFn(TC.first, L, TC.second, R); in test_comparisons_simple() 76 TestFn(TC.second, R, TC.first, L); in test_comparisons_simple()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | debug-info-template-limit.cpp | 8 class TC { class 10 TC(const TC &) {} in TC() function in TC 11 TC() {} in TC() function in TC 14 TC<int> tci;
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.status/ |
| H A D | status.pass.cpp | 83 for (auto& TC : TestCases) in TEST_CASE() local 87 file_status st = status(TC.p, ec); in TEST_CASE() 88 TEST_CHECK(ErrorIs(ec, TC.expect_errc)); in TEST_CASE() 95 status(TC.p); in TEST_CASE() 97 TEST_CHECK(err.path1() == TC.p); in TEST_CASE() 99 TEST_CHECK(ErrorIs(err.code(), TC.expect_errc)); in TEST_CASE() 130 for (const auto& TC : cases) { in TEST_CASE() local 133 file_status st = status(TC.p, ec); in TEST_CASE() 135 TEST_CHECK(st.type() == TC.expect_type); in TEST_CASE() 138 TEST_REQUIRE_NO_THROW(st = status(TC.p)); in TEST_CASE() [all …]
|