From: Tomasz KamiƄski Date: Fri, 10 Jul 2026 14:27:34 +0000 (+0200) Subject: libstdc++: Fix typos in comment in start_lifetime_as/neg.cc. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8a5c1d6ed236aea3ff2012ee8947b48a303569b;p=thirdparty%2Fgcc.git libstdc++: Fix typos in comment in start_lifetime_as/neg.cc. 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. --- diff --git a/libstdc++-v3/testsuite/std/memory/start_lifetime_as/neg.cc b/libstdc++-v3/testsuite/std/memory/start_lifetime_as/neg.cc index bdd504cf41c..0eeed67be48 100644 --- a/libstdc++-v3/testsuite/std/memory/start_lifetime_as/neg.cc +++ b/libstdc++-v3/testsuite/std/memory/start_lifetime_as/neg.cc @@ -16,26 +16,26 @@ struct NonTrivial void test(void* p) { (void)std::start_lifetime_as(p); // { dg-error "here" } - (void)std::start_lifetime_as_array(p, 2); // { dg-error "here" } + (void)std::start_lifetime_as_array(p, 2); // { dg-error "here" } (void)std::start_lifetime_as(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(p, 2); const void* cp = p; (void)std::start_lifetime_as(cp); // { dg-error "here" } - (void)std::start_lifetime_as_array(cp, 2); // { dg-error "here" } + (void)std::start_lifetime_as_array(cp, 2); // { dg-error "here" } (void)std::start_lifetime_as(cp); // { dg-error "here" } (void)std::start_lifetime_as_array(cp, 2); volatile void* vp = p; (void)std::start_lifetime_as(vp); // { dg-error "here" } - (void)std::start_lifetime_as_array(vp, 2); // { dg-error "here" } + (void)std::start_lifetime_as_array(vp, 2); // { dg-error "here" } (void)std::start_lifetime_as(vp); // { dg-error "here" } (void)std::start_lifetime_as_array(vp, 2); const volatile void* cvp = vp; (void)std::start_lifetime_as(cvp); // { dg-error "here" } - (void)std::start_lifetime_as_array(cvp, 2); // { dg-error "here" } + (void)std::start_lifetime_as_array(cvp, 2); // { dg-error "here" } (void)std::start_lifetime_as(cvp); // { dg-error "here" } (void)std::start_lifetime_as_array(cvp, 2); }