]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix copy&paste comments in vector range tests
authorJonathan Wakely <jwakely@redhat.com>
Wed, 30 Oct 2024 19:27:54 +0000 (19:27 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 30 Oct 2024 21:38:16 +0000 (21:38 +0000)
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.

libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc
libstdc++-v3/testsuite/23_containers/vector/modifiers/append_range.cc
libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/assign_range.cc
libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/insert_range.cc

index e91465f5a711494b604ecf0d3c3b4a6a647b0e89..ed2e3ca6ba1efed4f329e679eae1fabcca02b8e2 100644 (file)
@@ -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; }
index 24a5c7d0e7cc325768c01868bf4fd287608336f3..5725cd2ad483478b0d708094955c8a8af1a58c0a 100644 (file)
@@ -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; }
index 4e8d8af1614acafec7a1b8f2387be87a7e679af4..db3b06cfbc06a02f8d63d37d11324164ef4f75b8 100644 (file)
@@ -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; }
index 30219f5da02fcb6e119dda52841b73570cc710af..68218e94f28b28060f37a24071eab226d24ad41d 100644 (file)
@@ -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; }