diff options
author | Sam James <sam@gentoo.org> | 2024-10-04 07:47:54 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-10-04 09:42:40 +0100 |
commit | 0fae155090f2ce77fe876b2d16059dbeac6ded6e (patch) | |
tree | 357a9e3d93eea0e3b9ce28f32e36bce380fc0825 | |
parent | a2b7a6fe28a695a7cb6791e072d55ad84dde16bd (diff) | |
download | gcc-0fae155090f2ce77fe876b2d16059dbeac6ded6e.zip gcc-0fae155090f2ce77fe876b2d16059dbeac6ded6e.tar.gz gcc-0fae155090f2ce77fe876b2d16059dbeac6ded6e.tar.bz2 |
testsuite: fix two newly-running -Wstringop-overflow test directives
This didn't show up until the previous commit which fixed the directive
syntax. The indexing was off for the notes.
gcc/testsuite/ChangeLog:
* gcc.dg/Wstringop-overflow-79.c: Fix index for notes.
* gcc.dg/Wstringop-overflow-80.c: Ditto.
-rw-r--r-- | gcc/testsuite/gcc.dg/Wstringop-overflow-79.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wstringop-overflow-80.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-79.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-79.c index e97cb91..87bf775 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-overflow-79.c +++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-79.c @@ -29,7 +29,7 @@ void test_3_notes (int i) extern char c[8]; // { dg-message "at offset \\\[3, 6] into destination object 'c'" "note 1" } // { dg-message "at offset \\\[4, 7] into destination object 'c'" "note 2" { target *-*-* } .-1 } // { dg-message "at offset \\\[5, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 } - // { dg-message "at offset \\\[6, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 } + // { dg-message "at offset \\\[6, 8] into destination object 'c'" "note 4" { target *-*-* } .-3 } void test_4_notes (int i) { @@ -50,8 +50,8 @@ void test_4_notes (int i) extern char d[8]; // { dg-message "at offset \\\[3, 6] into destination object 'd'" "note 1" } // { dg-message "at offset \\\[4, 7] into destination object 'd'" "note 2" { target *-*-* } .-1 } // { dg-message "at offset \\\[5, 8] into destination object 'd'" "note 3" { target *-*-* } .-2 } - // { dg-message "at offset \\\[6, 8] into destination object 'd'" "note 3" { target *-*-* } .-3 } - // { dg-message "at offset \\\[7, 8] into destination object 'd'" "note 3" { target *-*-* } .-4 } + // { dg-message "at offset \\\[6, 8] into destination object 'd'" "note 4" { target *-*-* } .-3 } + // { dg-message "at offset \\\[7, 8] into destination object 'd'" "note 5" { target *-*-* } .-4 } void test_5_notes (int i) { diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-80.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-80.c index c74ca3a..f49b5ff 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-overflow-80.c +++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-80.c @@ -29,7 +29,7 @@ void test_3_notes (int i) extern char c[8]; // { dg-message "at offset \\\[3, 6] into destination object 'c'" "note 1" } // { dg-message "at offset \\\[4, 7] into destination object 'c'" "note 2" { target *-*-* } .-1 } // { dg-message "at offset \\\[5, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 } - // { dg-message "at offset \\\[6, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 } + // { dg-message "at offset \\\[6, 8] into destination object 'c'" "note 4" { target *-*-* } .-3 } void test_4_notes (int i) { @@ -50,8 +50,8 @@ void test_4_notes (int i) extern char d[8]; // { dg-message "at offset \\\[3, 6] into destination object 'd'" "note 1" } // { dg-message "at offset \\\[4, 7] into destination object 'd'" "note 2" { target *-*-* } .-1 } // { dg-message "at offset \\\[5, 8] into destination object 'd'" "note 3" { target *-*-* } .-2 } - // { dg-message "at offset \\\[6, 8] into destination object 'd'" "note 3" { target *-*-* } .-3 } - // { dg-message "at offset \\\[7, 8] into destination object 'd'" "note 3" { target *-*-* } .-4 } + // { dg-message "at offset \\\[6, 8] into destination object 'd'" "note 4" { target *-*-* } .-3 } + // { dg-message "at offset \\\[7, 8] into destination object 'd'" "note 5" { target *-*-* } .-4 } void test_5_notes (int i) { |