2018-06-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr71969-2.c
blobf434fd0debdf60d3eea78879973de6380f0bb3c5
1 /* PR c/71969 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99 -fno-gnu89-inline -O2 -fdump-tree-einline-details" } */
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
10 extern inline __attribute__((gnu_inline)) void
11 foo (void) { S100 }
13 int
14 main ()
16 foo ();
17 foo ();
18 foo ();
19 foo ();
20 return 0;
23 /* { dg-final { scan-tree-dump-times "Inlining foo into main" 4 "einline" } } */