testsuite: Add testcase for already fixed PR [PR110251]
This testcase started to hang at -O3 with r13-4208 and got fixed with r14-2097. 2024-01-17 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/110251 * gcc.c-torture/compile/pr110251.c: New test.
This commit is contained in:
parent
97089a54f7
commit
3fd32d3d22
1 changed files with 27 additions and 0 deletions
27
gcc/testsuite/gcc.c-torture/compile/pr110251.c
Normal file
27
gcc/testsuite/gcc.c-torture/compile/pr110251.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* PR tree-optimization/110251 */
|
||||
|
||||
int a, b;
|
||||
signed char c;
|
||||
|
||||
int
|
||||
foo (int e)
|
||||
{
|
||||
if (e >= 'a')
|
||||
return e;
|
||||
}
|
||||
|
||||
int
|
||||
bar (unsigned short e)
|
||||
{
|
||||
for (; e; a++)
|
||||
e &= e - 1;
|
||||
}
|
||||
|
||||
void
|
||||
baz (void)
|
||||
{
|
||||
while (c < 1)
|
||||
;
|
||||
for (; bar (c - 1); b = foo (c))
|
||||
;
|
||||
}
|
Loading…
Add table
Reference in a new issue