blob: 2c83b701e107e3f444bc31e4e644ecf604d5bfb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* PR c/18079 */
/* { dg-do compile } */
/* { dg-options "-Wall" } */
__attribute__ ((always_inline)) void fndecl1 (void);
__attribute__ ((noinline)) void fndecl1 (void); /* { dg-warning "attribute 'noinline' follows declaration with attribute 'always_inline'" } */
__attribute__ ((noinline)) void fndecl2 (void);
__attribute__ ((always_inline)) void fndecl2 (void); /* { dg-warning "attribute 'always_inline' follows declaration with attribute 'noinline'" } */
__attribute__ ((hot)) void fndecl3 (void);
__attribute__ ((cold)) void fndecl3 (void); /* { dg-warning "attribute 'cold' follows declaration with attribute 'hot'" } */
__attribute__ ((cold)) void fndecl4 (void);
__attribute__ ((hot)) void fndecl4 (void); /* { dg-warning "attribute 'hot' follows declaration with attribute 'cold'" } */
|