blob: b84cdebde3f465abf938a0bc788680a750870d3f [file] [log] [blame] [edit]
/* PR c/18079 */
/* { dg-do compile } */
/* { dg-options "-Wall" } */
__attribute__ ((noinline))
__attribute__ ((always_inline))
int
fn1 (int r)
{ /* { dg-warning "attribute ignored due to conflict" } */
return r & 4;
}
__attribute__ ((noinline, always_inline))
int
fn2 (int r)
{ /* { dg-warning "attribute ignored due to conflict" } */
return r & 4;
}
__attribute__ ((always_inline))
__attribute__ ((noinline))
inline int
fn3 (int r)
{ /* { dg-warning "attribute ignored due to conflict" } */
return r & 8;
}
__attribute__ ((always_inline, noinline))
inline int
fn4 (int r)
{ /* { dg-warning "attribute ignored due to conflict" } */
return r & 8;
}