From: Andrew MacLeod Date: Tue, 27 Sep 2022 22:42:33 +0000 (-0400) Subject: Remove undefined behaviour from testscase. X-Git-Tag: release-12.2.mpacbti-rel1~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8bd12887e5f242bc45c9df14384db052e885d80;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/gcc.dg/pr102892-1.c b/gcc/testsuite/gcc.dg/pr102892-1.c index a9302b536df6..051d09016f6f 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])