]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: fix dg-bogus typo
authorSam James <sam@gentoo.org>
Thu, 31 Oct 2024 02:52:41 +0000 (02:52 +0000)
committerSam James <sam@gentoo.org>
Thu, 27 Mar 2025 00:42:57 +0000 (00:42 +0000)
The dg-bogus directive here is trying to match -Warray-bounds or
-Wstringop-overflow, but it got the casing wrong on the latter.

gcc.dg/pr89350.c gets this right.

gcc/testsuite/ChangeLog:
PR middle-end/93437

* g++.dg/warn/Wstringop-overflow-5.C: Fix -Wstringop-overflow casing.

gcc/testsuite/g++.dg/warn/Wstringop-overflow-5.C

index 3e905fc47c5001fc5e4d617c1aea63efe55e40a9..e6adb7072057641ba3b4c9ebc0028e9c0de06b1f 100644 (file)
@@ -24,7 +24,7 @@ extern Bucket _Bucket_default_instance_;
 Bucket::Bucket ()
 {
   memset (&_has_bits_, 0, sizeof _has_bits_);
-  memset (&cumulative_count_, 0,    // { dg-bogus "\\\[-Warray-bounds|-wstringop-overflow" }
+  memset (&cumulative_count_, 0,    // { dg-bogus "\\\[-Warray-bounds|-Wstringop-overflow" }
         static_cast<size_t>(reinterpret_cast<char*>(&upper_bound_)
                             - reinterpret_cast<char*>(&cumulative_count_))
         + sizeof upper_bound_);