aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-10-31 02:52:41 +0000
committerSam James <sam@gentoo.org>2025-03-27 00:42:57 +0000
commit06b7549a762e6ed08ae919e7b9befa2ee7fb9b4b (patch)
tree8d6edf0346812c6a16e2c7e628ce59932dfe5978 /gcc
parentfed26e59d6771004a0649a98b1a16fa28a9bb1bd (diff)
downloadgcc-06b7549a762e6ed08ae919e7b9befa2ee7fb9b4b.zip
gcc-06b7549a762e6ed08ae919e7b9befa2ee7fb9b4b.tar.gz
gcc-06b7549a762e6ed08ae919e7b9befa2ee7fb9b4b.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/warn/Wstringop-overflow-5.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-5.C b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-5.C
index 3e905fc..e6adb70 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<size_t>(reinterpret_cast<char*>(&upper_bound_)
- reinterpret_cast<char*>(&cumulative_count_))
+ sizeof upper_bound_);