diff options
author | Martin Sebor <msebor@redhat.com> | 2021-07-08 16:08:20 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-07-08 16:08:20 -0600 |
commit | c232f07b931e3e4cb7cbd96e47b161f1c390f21d (patch) | |
tree | c0b70a1d06e0d8ccf3b58e5ede19a51fa9263990 | |
parent | c68cac900ab4ccaf6b1a31168bc9a302ebc46428 (diff) | |
download | gcc-c232f07b931e3e4cb7cbd96e47b161f1c390f21d.zip gcc-c232f07b931e3e4cb7cbd96e47b161f1c390f21d.tar.gz gcc-c232f07b931e3e4cb7cbd96e47b161f1c390f21d.tar.bz2 |
Adjust expected output for LP32 [PR100451].
gcc/testsuite/ChangeLog:
PR testsuite/100451
* g++.dg/warn/Warray-bounds-20.C: Adjust expected output for LP32.
-rw-r--r-- | gcc/testsuite/g++.dg/warn/Warray-bounds-20.C | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/testsuite/g++.dg/warn/Warray-bounds-20.C b/gcc/testsuite/g++.dg/warn/Warray-bounds-20.C index a65b29e..f4876d8 100644 --- a/gcc/testsuite/g++.dg/warn/Warray-bounds-20.C +++ b/gcc/testsuite/g++.dg/warn/Warray-bounds-20.C @@ -27,7 +27,7 @@ struct D1: virtual B, virtual C to the opening brace. */ D1 () { // { dg-warning "\\\[-Warray-bounds" "brace" } - ci = 0; // { dg-warning "\\\[-Warray-bounds" "assign" { xfail *-*-* } } + ci = 0; // { dg-warning "\\\[-Warray-bounds" "assign" { xfail lp64 } } } }; @@ -35,7 +35,8 @@ void sink (void*); void warn_derived_ctor_access_new_decl () { - char a[sizeof (D1)]; // { dg-message "at offset 1 into object 'a' of size 40" "note" } + char a[sizeof (D1)]; // { dg-message "at offset 1 into object 'a' of size 40" "LP64 note" { target lp64} } + // { dg-message "at offset 1 into object 'a' of size 20" "LP64 note" { target ilp32} .-1 } char *p = a; ++p; D1 *q = new (p) D1; @@ -52,7 +53,8 @@ void warn_derived_ctor_access_new_alloc () void warn_derived_ctor_access_new_array_decl () { - char b[sizeof (D1) * 2]; // { dg-message "at offset \\d+ into object 'b' of size 80" "note" } + char b[sizeof (D1) * 2]; // { dg-message "at offset \\d+ into object 'b' of size 80" "LP64 note" { target lp64 } } + // { dg-message "at offset \\d+ into object 'b' of size 40" "LP64 note" { target ilp32 } .-1 } char *p = b; ++p; D1 *q = new (p) D1[2]; |