]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr103860.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr103860.c
CommitLineData
1820137b
JJ
1/* PR rtl-optimization/103860 */
2/* { dg-do run } */
3/* { dg-options "-O3" } */
4/* { dg-additional-options "-fPIC" { target fpic } } */
5
6static int d, *e;
7int f;
8
9__attribute__((noinline)) signed char
10foo (signed char b, signed char c)
11{
12 return b + c;
13}
14
15int
16main ()
17{
18 signed char l;
19 for (l = -1; l; l = foo (l, 1))
20 {
21 while (d < 0)
22 ;
23 if (d > 0)
24 {
25 f = 0;
26 *e = 0;
27 }
28 }
29 d = 0;
30 return 0;
31}