mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-02 18:46:08 +08:00
tree-optimization/111383 - testcase for fixed PR
PR tree-optimization/111383 PR tree-optimization/110243 gcc/testsuite/ * gcc.dg/torture/pr111383.c: New testcase.
This commit is contained in:
parent
9692309ed6
commit
a1fc2cc0a8
29
gcc/testsuite/gcc.dg/torture/pr111383.c
Normal file
29
gcc/testsuite/gcc.dg/torture/pr111383.c
Normal file
@ -0,0 +1,29 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target int32plus } */
|
||||
|
||||
extern void abort (void);
|
||||
int a, d = 1625015426;
|
||||
char e;
|
||||
short b;
|
||||
short *f = &b, *g = &b;
|
||||
void h(char *k) {
|
||||
char c = *k;
|
||||
for (; c;)
|
||||
;
|
||||
}
|
||||
int main()
|
||||
{
|
||||
*g = 25330;
|
||||
int i, j;
|
||||
i = 0;
|
||||
for (; *f + d - 1625040257 < 7;)
|
||||
;
|
||||
for (; i < 4; i++) {
|
||||
j = 0;
|
||||
for (; (d - 1625015511) + (d - 1625015341) + j < 1; j++)
|
||||
h(&e);
|
||||
}
|
||||
if (a != 0)
|
||||
abort ();
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user