public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-8847] Remove undefined behaviour from testscase.
@ 2022-10-19 9:42 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2022-10-19 9:42 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e8bd12887e5f242bc45c9df14384db052e885d80
commit r12-8847-ge8bd12887e5f242bc45c9df14384db052e885d80
Author: Andrew MacLeod <amacleod@redhat.com>
Date: Tue Sep 27 18:42:33 2022 -0400
Remove undefined behaviour from testscase.
There was a patch posted to remove the undefined behaviour from this
testcase, but it appear to never have been applied.
gcc/teststuite/
PR tree-optimization/102892
* gcc.dg/pr102892-1.c: Remove undefined behaviour.
Diff:
---
gcc/testsuite/gcc.dg/pr102892-1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/pr102892-1.c b/gcc/testsuite/gcc.dg/pr102892-1.c
index a9302b536df..051d09016f6 100644
--- a/gcc/testsuite/gcc.dg/pr102892-1.c
+++ b/gcc/testsuite/gcc.dg/pr102892-1.c
@@ -11,7 +11,7 @@ int
main ()
{
long c = 0;
- for (long a; a < 1; ++a)
+ for (long a = 0; a < 1; ++a)
for (; c <= 1; c++) {
bar();
if (1 == b[c][0])
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-19 9:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 9:42 [gcc r12-8847] Remove undefined behaviour from testscase 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).