Adjust scan string for PIE
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18079-2.c
blob2c83b701e107e3f444bc31e4e644ecf604d5bfb8
1 /* PR c/18079 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall" } */
5 __attribute__ ((always_inline)) void fndecl1 (void);
6 __attribute__ ((noinline)) void fndecl1 (void); /* { dg-warning "attribute 'noinline' follows declaration with attribute 'always_inline'" } */
8 __attribute__ ((noinline)) void fndecl2 (void);
9 __attribute__ ((always_inline)) void fndecl2 (void); /* { dg-warning "attribute 'always_inline' follows declaration with attribute 'noinline'" } */
12 __attribute__ ((hot)) void fndecl3 (void);
13 __attribute__ ((cold)) void fndecl3 (void); /* { dg-warning "attribute 'cold' follows declaration with attribute 'hot'" } */
15 __attribute__ ((cold)) void fndecl4 (void);
16 __attribute__ ((hot)) void fndecl4 (void); /* { dg-warning "attribute 'hot' follows declaration with attribute 'cold'" } */