1 /* { dg-do compile { target { powerpc-*-linux* && ilp32 } } } */
2 /* { dg-options "-O2 -fpic -fno-reorder-blocks" } */
3 /* { dg-require-effective-target fpic } */
4
5 /* Analog of pr79439-1.c for 32-bit Linux. */
6
7 int f (void);
8
9 void
10 g (void)
11 {
12 }
13
14 int
15 rec (int a)
16 {
17 int ret = 0;
18 if (a > 10 && f ())
19 ret += rec (a - 1);
20 g ();
21 return a + ret;
22 }
23
24 /* { dg-final { scan-assembler-times {\mbl f@plt\M} 1 } } */
25 /* { dg-final { scan-assembler-times {\mbl g@plt\M} 1 } } */
26 /* { dg-final { scan-assembler-times {\mbl rec@plt\M} 0 } } */