]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix typos in comment in start_lifetime_as/neg.cc.
authorTomasz Kamiński <tkaminsk@redhat.com>
Fri, 10 Jul 2026 14:27:34 +0000 (16:27 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Fri, 10 Jul 2026 14:59:19 +0000 (16:59 +0200)
Fix typos in comment pointed by Jakub and remove trailing
whitespaces.

libstdc++-v3/ChangeLog:

* testsuite/std/memory/start_lifetime_as/neg.cc: Fix
typos in comment and remove trailing whitespaces.

libstdc++-v3/testsuite/std/memory/start_lifetime_as/neg.cc

index bdd504cf41c4c0d61b2f86296eaff81b6219731d..0eeed67be486ba59e0ef82513736692c3d4b051d 100644 (file)
@@ -16,26 +16,26 @@ struct NonTrivial
 void test(void* p)
 {
   (void)std::start_lifetime_as<Incomplete>(p);           // { dg-error "here" }
-  (void)std::start_lifetime_as_array<Incomplete>(p, 2);  // { dg-error "here" } 
+  (void)std::start_lifetime_as_array<Incomplete>(p, 2);  // { dg-error "here" }
   (void)std::start_lifetime_as<NonTrivial>(p);           // { dg-error "here" }
-  // Array are implicit-lifetime regardless of they element type
+  // Arrays are implicit-lifetime regardless of their element type
   (void)std::start_lifetime_as_array<NonTrivial>(p, 2);
 
   const void* cp = p;
   (void)std::start_lifetime_as<Incomplete>(cp);           // { dg-error "here" }
-  (void)std::start_lifetime_as_array<Incomplete>(cp, 2);  // { dg-error "here" } 
+  (void)std::start_lifetime_as_array<Incomplete>(cp, 2);  // { dg-error "here" }
   (void)std::start_lifetime_as<NonTrivial>(cp);           // { dg-error "here" }
   (void)std::start_lifetime_as_array<NonTrivial>(cp, 2);
 
   volatile void* vp = p;
   (void)std::start_lifetime_as<Incomplete>(vp);           // { dg-error "here" }
-  (void)std::start_lifetime_as_array<Incomplete>(vp, 2);  // { dg-error "here" } 
+  (void)std::start_lifetime_as_array<Incomplete>(vp, 2);  // { dg-error "here" }
   (void)std::start_lifetime_as<NonTrivial>(vp);           // { dg-error "here" }
   (void)std::start_lifetime_as_array<NonTrivial>(vp, 2);
 
   const volatile void* cvp = vp;
   (void)std::start_lifetime_as<Incomplete>(cvp);           // { dg-error "here" }
-  (void)std::start_lifetime_as_array<Incomplete>(cvp, 2);  // { dg-error "here" } 
+  (void)std::start_lifetime_as_array<Incomplete>(cvp, 2);  // { dg-error "here" }
   (void)std::start_lifetime_as<NonTrivial>(cvp);           // { dg-error "here" }
   (void)std::start_lifetime_as_array<NonTrivial>(cvp, 2);
 }