public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] libstdc++: Fix memory issue in ranges::lexicographical_compare testcase
@ 2020-10-29 14:15 Patrick Palka
  2020-10-29 14:58 ` Patrick Palka
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Palka @ 2020-10-29 14:15 UTC (permalink / raw)
  To: gcc-patches; +Cc: libstdc++, Patrick Palka

libstdc++-v3/ChangeLog:

	* testsuite/25_algorithms/lexicographical_compare/constrained.cc:
	(test03): Fix initializing the vector vy with the array y of size 4.
---
 .../25_algorithms/lexicographical_compare/constrained.cc        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc
index b82c872bbbb..2019bbc75e4 100644
--- a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc
@@ -136,7 +136,7 @@ test03()
       VERIFY( !ranges::lexicographical_compare(cy.begin(), cy.end(),
 					       cz.begin(), cz.end()) );
 
-      std::vector<int> vx(x, x+5), vy(y, y+5);
+      std::vector<int> vx(x, x+5), vy(y, y+4);
       VERIFY( ranges::lexicographical_compare(vx, vy) );
       VERIFY( !ranges::lexicographical_compare(vx, vy, ranges::greater{}) );
       VERIFY( !ranges::lexicographical_compare(vy, vx) );
-- 
2.29.0.rc0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [committed] libstdc++: Fix memory issue in ranges::lexicographical_compare testcase
  2020-10-29 14:15 [committed] libstdc++: Fix memory issue in ranges::lexicographical_compare testcase Patrick Palka
@ 2020-10-29 14:58 ` Patrick Palka
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Palka @ 2020-10-29 14:58 UTC (permalink / raw)
  To: Patrick Palka; +Cc: gcc-patches, libstdc++

On Thu, 29 Oct 2020, Patrick Palka wrote:

> libstdc++-v3/ChangeLog:
> 
> 	* testsuite/25_algorithms/lexicographical_compare/constrained.cc:
> 	(test03): Fix initializing the vector vy with the array y of size 4.

Now committed to the 10 branch as well.

> ---
>  .../25_algorithms/lexicographical_compare/constrained.cc        | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc
> index b82c872bbbb..2019bbc75e4 100644
> --- a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc
> +++ b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc
> @@ -136,7 +136,7 @@ test03()
>        VERIFY( !ranges::lexicographical_compare(cy.begin(), cy.end(),
>  					       cz.begin(), cz.end()) );
>  
> -      std::vector<int> vx(x, x+5), vy(y, y+5);
> +      std::vector<int> vx(x, x+5), vy(y, y+4);
>        VERIFY( ranges::lexicographical_compare(vx, vy) );
>        VERIFY( !ranges::lexicographical_compare(vx, vy, ranges::greater{}) );
>        VERIFY( !ranges::lexicographical_compare(vy, vx) );
> -- 
> 2.29.0.rc0
> 
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-29 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29 14:15 [committed] libstdc++: Fix memory issue in ranges::lexicographical_compare testcase Patrick Palka
2020-10-29 14:58 ` Patrick Palka

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).