Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / cold-2.c
blob7f78496fb8205afc54baa5e3ee46cb2f2e286312
1 /* PR ipa/105685 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wsuggest-attribute=cold" } */
5 extern void foo (char *, char const *, int);
7 __attribute__((cold)) char *
8 bar (int x)
10 static char b[42];
11 foo (b, "foo", x);
12 return b;
15 __attribute__((cold)) char *
16 baz (int x) /* { dg-bogus "function might be candidate for attribute 'cold'" } */
18 return bar (x);