diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2022-06-28 18:43:42 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2022-06-30 10:14:55 +0800 |
commit | 0f6eef398045deb2a62d18b526831719c7c20c8a (patch) | |
tree | 57c23e5ee5436543a1f67193e541c77a5d4cb741 | |
parent | 918ccccbb0e78ae42bfcf808a1e93a8f6b9d02ea (diff) | |
download | gcc-0f6eef398045deb2a62d18b526831719c7c20c8a.zip gcc-0f6eef398045deb2a62d18b526831719c7c20c8a.tar.gz gcc-0f6eef398045deb2a62d18b526831719c7c20c8a.tar.bz2 |
testsuite/102690: Only check warning for lp64 in Warray-bounds-16.C
That warning won't happen on ilp32 targets, seems like Andrew Pinski
already mention that[1] before.
Verified on riscv32-unknown-elf and riscv64-unknown-elf.
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92879#c1
gcc/testsuite/ChangeLog:
PR testsuite/102690
* g++.dg/warn/Warray-bounds-16.C: XFAIL only on lp64 for the
warning.
-rw-r--r-- | gcc/testsuite/g++.dg/warn/Warray-bounds-16.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C b/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C index 89cbadb..45a14b1 100644 --- a/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C +++ b/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C @@ -19,7 +19,7 @@ struct S p = (int*) new unsigned char [sizeof (int) * m]; for (int i = 0; i < m; i++) - new (p + i) int (); /* { dg-bogus "bounds" "pr102690" { xfail *-*-* } } */ + new (p + i) int (); /* { dg-bogus "bounds" "pr102690" { xfail lp64 } } */ } }; |