public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-2983] libstdc++: Fix test to use correct function Date: Wed, 2 Sep 2020 16:23:12 +0000 (GMT) [thread overview] Message-ID: <20200902162312.2F7FF384A40A@sourceware.org> (raw) https://gcc.gnu.org/g:c71644776f4e8477289a4de16239dbb420db6945 commit r11-2983-gc71644776f4e8477289a4de16239dbb420db6945 Author: Jonathan Wakely <jwakely@redhat.com> Date: Wed Sep 2 17:20:37 2020 +0100 libstdc++: Fix test to use correct function This was copied from a test for std::lcm but I forgot to change one of the calls to use the experimental version of the function. libstdc++-v3/ChangeLog: PR libstdc++/92978 * testsuite/experimental/numeric/92978.cc: Use experimental::lcm not std::lcm. Diff: --- libstdc++-v3/testsuite/experimental/numeric/92978.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/experimental/numeric/92978.cc b/libstdc++-v3/testsuite/experimental/numeric/92978.cc index 8408fd4d9ce..e2a4b1adefa 100644 --- a/libstdc++-v3/testsuite/experimental/numeric/92978.cc +++ b/libstdc++-v3/testsuite/experimental/numeric/92978.cc @@ -29,7 +29,7 @@ test01() static_assert( std::experimental::gcd(120U, -10) == 10, "mixed signed/unsigned" ); - static_assert( std::lcm(-42, 21U) == 42U ); + static_assert( std::experimental::lcm(-42, 21U) == 42U ); } void
reply other threads:[~2020-09-02 16:23 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200902162312.2F7FF384A40A@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).