Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr18079.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR c/18079 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Wall" } */ | |
4 | |
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; | |
11 } | |
12 | |
13 __attribute__ ((noinline, always_inline)) | |
14 int | |
15 fn2 (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 | |
23 fn3 (int r) | |
24 { /* { dg-warning "attribute ignored due to conflict" } */ | |
25 return r & 8; | |
26 } | |
27 | |
28 __attribute__ ((always_inline, noinline)) | |
29 inline int | |
30 fn4 (int r) | |
31 { /* { dg-warning "attribute ignored due to conflict" } */ | |
32 return r & 8; | |
33 } |