| 1 |
/* PR c/71969 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-std=gnu99 -fno-gnu89-inline -O2 -fdump-tree-einline-details" } */ |
| 4 |
|
| 5 |
volatile int v; |
| 6 |
#define S v++; |
| 7 |
#define S10 S S S S S S S S S S |
| 8 |
#define S100 S10 S10 S10 S10 S10 S10 S10 S10 S10 S10 |
| 9 |
|
| 10 |
extern inline __attribute__((gnu_inline)) void |
| 11 |
foo (void) { S100 } |
| 12 |
|
| 13 |
int |
| 14 |
main () |
| 15 |
{ |
| 16 |
foo (); |
| 17 |
foo (); |
| 18 |
foo (); |
| 19 |
foo (); |
| 20 |
return 0; |
| 21 |
} |
| 22 |
|
| 23 |
/* { dg-final { scan-tree-dump-times "Inlining foo/\[0-9\]* into main/\[0-9\]*" 4 "einline" } } */ |