PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr71969-1.c
bloba39b05ea9edf8e27685623026cc80ef9552ae94c
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 void
11 foo (void) { S100 }
13 inline void
14 bar (void) { S100 }
16 static inline void
17 baz (void) { S100 }
19 int
20 main ()
22 foo ();
23 foo ();
24 foo ();
25 foo ();
26 bar ();
27 bar ();
28 bar ();
29 bar ();
30 baz ();
31 baz ();
32 baz ();
33 baz ();
34 return 0;
37 /* { dg-final { scan-tree-dump-times "will not early inline" 12 "einline" } } */