1 // { dg-do compile }
2 // { dg-options "-O2 -Winline" }
3 // Origin: <markus at oberhumer dot com>
4 // PR 17115: We should not emit -Winline warning for functions marked with
5 //  noinline
6 
7 struct Foo {
aFoo8   __attribute__((noinline)) int a(int r) { return r & 1; }
bFoo9   virtual __attribute__((noinline)) int b(int r) { return r & 1; }
cFoo10   static  __attribute__((noinline)) int c(int r) { return r & 1; }
11 };
12 
bar(int r)13 int bar(int r) {
14   Foo f;
15   int k = 1; k &= f.a(r); k &= f.b(r); k &= f.a(r);
16   return k;
17 }
18