2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18079.c
blobb84cdebde3f465abf938a0bc788680a750870d3f
1 /* PR c/18079 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall" } */
5 __attribute__ ((noinline))
6 __attribute__ ((always_inline))
7 int
8 fn1 (int r)
9 { /* { dg-warning "attribute ignored due to conflict" } */
10 return r & 4;
13 __attribute__ ((noinline, always_inline))
14 int
15 fn2 (int r)
16 { /* { dg-warning "attribute ignored due to conflict" } */
17 return r & 4;
20 __attribute__ ((always_inline))
21 __attribute__ ((noinline))
22 inline int
23 fn3 (int r)
24 { /* { dg-warning "attribute ignored due to conflict" } */
25 return r & 8;
28 __attribute__ ((always_inline, noinline))
29 inline int
30 fn4 (int r)
31 { /* { dg-warning "attribute ignored due to conflict" } */
32 return r & 8;