diff mbox series

[committed] libstdc++: Fix copy&paste comments in vector range tests

Message ID 20241030221338.1349405-1-jwakely@redhat.com
State New
Headers show
Series [committed] libstdc++: Fix copy&paste comments in vector range tests | expand

Commit Message

Jonathan Wakely Oct. 30, 2024, 10:13 p.m. UTC
These comments were copied from the std::vector<bool> tests, but the
value_type is not bool in these ones.

libstdc++-v3/ChangeLog:

	* testsuite/23_containers/vector/cons/from_range.cc: Fix copy &
	paste error in comment.
	* testsuite/23_containers/vector/modifiers/append_range.cc:
	Likewise.
	* testsuite/23_containers/vector/modifiers/assign/assign_range.cc:
	Likewise.
	* testsuite/23_containers/vector/modifiers/insert/insert_range.cc:
	Likewise.
---
Pushed to trunk.

 libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc  | 2 +-
 .../testsuite/23_containers/vector/modifiers/append_range.cc    | 2 +-
 .../23_containers/vector/modifiers/assign/assign_range.cc       | 2 +-
 .../23_containers/vector/modifiers/insert/insert_range.cc       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc b/libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc
index e91465f5a71..ed2e3ca6ba1 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc
@@ -80,7 +80,7 @@  test_ranges()
   do_test_a<test_forward_range<short>>();
   do_test_a<test_input_range<short>>();
 
-  // Not lvalue-convertible to bool
+  // Not lvalue-convertible to int
   struct C {
     C(int v) : val(v) { }
     operator int() && { return val; }
diff --git a/libstdc++-v3/testsuite/23_containers/vector/modifiers/append_range.cc b/libstdc++-v3/testsuite/23_containers/vector/modifiers/append_range.cc
index 24a5c7d0e7c..5725cd2ad48 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/modifiers/append_range.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/modifiers/append_range.cc
@@ -69,7 +69,7 @@  test_ranges()
   do_test_a<test_forward_range<short>>();
   do_test_a<test_input_range<short>>();
 
-  // Not lvalue-convertible to bool
+  // Not lvalue-convertible to int
   struct C {
     C(int v) : val(v) { }
     operator int() && { return val; }
diff --git a/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/assign_range.cc b/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/assign_range.cc
index 4e8d8af1614..db3b06cfbc0 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/assign_range.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/assign_range.cc
@@ -90,7 +90,7 @@  test_ranges()
   do_test_a<test_forward_range<short>>();
   do_test_a<test_input_range<short>>();
 
-  // Not lvalue-convertible to bool
+  // Not lvalue-convertible to int
   struct C {
     C(int v) : val(v) { }
     operator int() && { return val; }
diff --git a/libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/insert_range.cc b/libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/insert_range.cc
index 30219f5da02..68218e94f28 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/insert_range.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/insert_range.cc
@@ -80,7 +80,7 @@  test_ranges()
   do_test_a<test_forward_range<short>>();
   do_test_a<test_input_range<short>>();
 
-  // Not lvalue-convertible to bool
+  // Not lvalue-convertible to int
   struct C {
     C(int v) : val(v) { }
     operator int() && { return val; }