Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr18079.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
line wrap: on
line source
/* 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; }