1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Winline -fopt-info-optimized-inline=stderr" } */
3
4 struct s { int a; };
5
6 inline void f (x)
7 int x;
8 {
9 asm ("");
10 }
11
12 void g (struct s x)
13 {
14 f (x); /* { dg-optimized "Inlining f.* into g" } */
15 }
16
17 void f (int x); /* { dg-warning "follows non-prototype definition" } */