projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2ee70f
)
Remove undefined behaviour from testscase.
author
Andrew MacLeod
<amacleod@redhat.com>
Tue, 27 Sep 2022 22:42:33 +0000
(18:42 -0400)
committer
Andrew MacLeod
<amacleod@redhat.com>
Thu, 29 Sep 2022 22:34:09 +0000
(18:34 -0400)
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.
gcc/testsuite/gcc.dg/pr102892-1.c
patch
|
blob
|
history
diff --git
a/gcc/testsuite/gcc.dg/pr102892-1.c
b/gcc/testsuite/gcc.dg/pr102892-1.c
index
f08b2b8
..
faca3f2
100644
(file)
--- 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])