comparison gcc/testsuite/c-c++-common/attributes-3.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
10 10
11 extern __attribute__((noinline)) int fn1 (void); /* { dg-message "previous declaration" } */ 11 extern __attribute__((noinline)) int fn1 (void); /* { dg-message "previous declaration" } */
12 extern inline int fn1 (void); /* { dg-warning "inline declaration of" } */ 12 extern inline int fn1 (void); /* { dg-warning "inline declaration of" } */
13 13
14 extern inline int fn2 (void); /* { dg-message "previous declaration" } */ 14 extern inline int fn2 (void); /* { dg-message "previous declaration" } */
15 extern __attribute__((noinline)) int fn2 (void); /* { dg-warning "attribute noinline follows inline declaration" } */ 15 extern __attribute__((noinline)) int fn2 (void); /* { dg-warning "attribute .noinline. follows inline declaration" } */
16 16
17 extern __attribute__((always_inline)) int fn3 (void); /* { dg-message "previous declaration" } */ 17 extern __attribute__((always_inline)) int fn3 (void); /* { dg-message "previous declaration" } */
18 extern __attribute__((noinline)) int fn3 (void); /* { dg-warning "attribute .noinline. follows declaration with attribute .always_inline." } */ 18 extern __attribute__((noinline)) int fn3 (void); /* { dg-warning "attribute .noinline." } */
19 19
20 extern __attribute__((noinline)) int fn4 (void); /* { dg-message "previous declaration" } */ 20 extern __attribute__((noinline)) int fn4 (void); /* { dg-message "previous declaration" } */
21 extern __attribute__((always_inline)) int fn4 (void); /* { dg-warning "attribute .always_inline. follows declaration with attribute .noinline." } */ 21 extern __attribute__((always_inline)) int fn4 (void); /* { dg-warning "attribute .always_inline." } */
22 22
23 extern __attribute__((hot)) int fn5 (void); /* { dg-message "previous declaration" } */ 23 extern __attribute__((hot)) int fn5 (void); /* { dg-message "previous declaration" } */
24 extern __attribute__((cold)) int fn5 (void); /* { dg-warning "attribute .cold. follows declaration with attribute .hot." } */ 24 extern __attribute__((cold)) int fn5 (void); /* { dg-warning "attribute .cold." } */
25 25
26 extern __attribute__((cold)) int fn6 (void); /* { dg-message "previous declaration" } */ 26 extern __attribute__((cold)) int fn6 (void); /* { dg-message "previous declaration" } */
27 extern __attribute__((hot)) int fn6 (void); /* { dg-warning "attribute .hot. follows declaration with attribute .cold." } */ 27 extern __attribute__((hot)) int fn6 (void); /* { dg-warning "attribute .hot." } */