1 /* PR c/18079 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-Wall" } */ 4 5 __attribute__ ((noinline)) 6 __attribute__ ((always_inline)) 7 int fn1(int r)8fn1 (int r) 9 { /* { dg-warning "attribute ignored due to conflict" } */ 10 return r & 4; 11 } 12 13 __attribute__ ((noinline, always_inline)) 14 int fn2(int r)15fn2 (int r) 16 { /* { dg-warning "attribute ignored due to conflict" } */ 17 return r & 4; 18 } 19 20 __attribute__ ((always_inline)) 21 __attribute__ ((noinline)) 22 inline int fn3(int r)23fn3 (int r) 24 { /* { dg-warning "attribute ignored due to conflict" } */ 25 return r & 8; 26 } 27 28 __attribute__ ((always_inline, noinline)) 29 inline int fn4(int r)30fn4 (int r) 31 { /* { dg-warning "attribute ignored due to conflict" } */ 32 return r & 8; 33 } 34