OSDN Git Service

2010-12-30 Kai Tietz <kai.tietz@onevision.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / winline-10.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Winline" } */
3
4 struct s { int a; };
5
6 inline void f (x)       /* { dg-warning "inlining .* mismatched arg" "" } */
7      int x;
8 {
9   asm ("");
10 }
11
12 void g (struct s x)
13 {
14   f (x);                /* { dg-warning "called from here" "" } */
15 }
16
17 void f (int x);         /* { dg-warning "follows non-prototype definition" } */