aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2022-09-27 18:42:33 -0400
committerAndrew MacLeod <amacleod@redhat.com>2022-09-29 18:34:09 -0400
commit845ee38e9b40230fbb1b9825fb62146fd858cd96 (patch)
tree891e227362d7fa389dad1062c6ab5027b84a05c1 /gcc
parentc2ee70f20de8133a88553270073226b0f3f55f62 (diff)
downloadgcc-845ee38e9b40230fbb1b9825fb62146fd858cd96.zip
gcc-845ee38e9b40230fbb1b9825fb62146fd858cd96.tar.gz
gcc-845ee38e9b40230fbb1b9825fb62146fd858cd96.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/pr102892-1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/pr102892-1.c b/gcc/testsuite/gcc.dg/pr102892-1.c
index f08b2b8..faca3f2 100644
--- a/gcc/testsuite/gcc.dg/pr102892-1.c
+++ b/gcc/testsuite/gcc.dg/pr102892-1.c
@@ -12,7 +12,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])