From 06b7549a762e6ed08ae919e7b9befa2ee7fb9b4b Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 31 Oct 2024 02:52:41 +0000 Subject: [PATCH] testsuite: fix dg-bogus typo 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-5.C b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-5.C index 3e905fc47c5..e6adb707205 100644 --- a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-5.C +++ b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-5.C @@ -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(reinterpret_cast(&upper_bound_) - reinterpret_cast(&cumulative_count_)) + sizeof upper_bound_); -- 2.47.2