public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9233] testsuite/102690 - XFAIL g++.dg/warn/Warray-bounds-16.C
@ 2021-11-10 10:10 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-11-10 10:10 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:3dea90505df136a4b361665772ef8e62306cfcdb
commit r11-9233-g3dea90505df136a4b361665772ef8e62306cfcdb
Author: Richard Biener <rguenther@suse.de>
Date: Wed Nov 10 11:08:03 2021 +0100
testsuite/102690 - XFAIL g++.dg/warn/Warray-bounds-16.C
This XFAILs the bogus diagnostic test and rectifies the expectation
on the optimization.
2021-11-10 Richard Biener <rguenther@suse.de>
PR testsuite/102690
* g++.dg/warn/Warray-bounds-16.C: XFAIL diagnostic part
and optimization.
(cherry picked from commit b2cd32b743ba440e75505ce30c6b5c592ed144ea)
Diff:
---
gcc/testsuite/g++.dg/warn/Warray-bounds-16.C | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C b/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C
index 17b4d0d194e..89cbadb91c7 100644
--- a/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C
+++ b/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C
@@ -19,11 +19,11 @@ struct S
p = (int*) new unsigned char [sizeof (int) * m];
for (int i = 0; i < m; i++)
- new (p + i) int ();
+ new (p + i) int (); /* { dg-bogus "bounds" "pr102690" { xfail *-*-* } } */
}
};
S a (0);
-/* Verify the loop has been eliminated.
- { dg-final { scan-tree-dump-not "goto" "optimized" } } */
+/* The loop cannot be eliminated since the global 'new' can change 'm'. */
+/* { dg-final { scan-tree-dump-not "goto" "optimized" { xfail *-*-* } } } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-10 10:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10 10:10 [gcc r11-9233] testsuite/102690 - XFAIL g++.dg/warn/Warray-bounds-16.C Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).