1 /* PR ipa/105685 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wsuggest-attribute=cold" } */
4
5 extern void foo (char *, char const *, int);
6
7 __attribute__((cold)) char *
8 bar (int x)
9 {
10 static char b[42];
11 foo (b, "foo", x);
12 return b;
13 }
14
15 __attribute__((cold)) char *
16 baz (int x) /* { dg-bogus "function might be candidate for attribute 'cold'" } */
17 {
18 return bar (x);
19 }