builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18079.c
bloba37dc1880b23cda73d7b1e3e0e93bcf4c1b9af34
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 "ignoring attribute .always_inline. because it conflicts with attribute .noinline." } */
10 return r & 4;
13 __attribute__ ((noinline, always_inline))
14 int
15 fn2 (int r)
16 { /* { dg-warning "ignoring attribute .always_inline. because it conflicts with attribute .noinline." } */
17 return r & 4;
20 __attribute__ ((always_inline))
21 __attribute__ ((noinline))
22 inline int
23 fn3 (int r)
24 { /* { dg-warning "ignoring attribute .noinline. because it conflicts with attribute .always_inline." } */
25 return r & 8;
28 __attribute__ ((always_inline, noinline))
29 inline int
30 fn4 (int r)
31 { /* { dg-warning "ignoring attribute .noinline. because it conflicts with attribute .always_inline." } */
32 return r & 8;