[libcxx-commits] [libcxx] gcd: Add more tests that require few more divisions (PR #129395)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 1 10:48:24 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff b65e0947cade9bd39036a7700b54c1df4ec00756 43264013710e4276515fb224d21c8446d365bb44 --extensions cpp -- libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/gcd.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/gcd.pass.cpp b/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/gcd.pass.cpp
index c5d3c127fc..44335d98a3 100644
--- a/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/gcd.pass.cpp
+++ b/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/gcd.pass.cpp
@@ -27,7 +27,19 @@ constexpr struct {
int x;
int y;
int expect;
-} Cases[] = {{0, 0, 0}, {1, 0, 1}, {0, 1, 1}, {1, 1, 1}, {2, 3, 1}, {2, 4, 2}, {11, 9, 1}, {36, 17, 1}, {36, 18, 18}, {25, 30, 5}, {24, 16, 8}, {256, 100, 4}};
+} Cases[] = {
+ {0, 0, 0},
+ {1, 0, 1},
+ {0, 1, 1},
+ {1, 1, 1},
+ {2, 3, 1},
+ {2, 4, 2},
+ {11, 9, 1},
+ {36, 17, 1},
+ {36, 18, 18},
+ {25, 30, 5},
+ {24, 16, 8},
+ {256, 100, 4}};
template <typename Input1, typename Input2, typename Output>
constexpr bool test0(int in1, int in2, int out)
``````````
</details>
https://github.com/llvm/llvm-project/pull/129395
More information about the libcxx-commits
mailing list