2 /* { dg-do compile { target nonpic } } */
3 /* { dg-options "-O1 -Wsuggest-attribute=cold" } */
5 extern void *getdata (void);
6 extern int set_error (char const *message
) __attribute__((cold
));
8 __attribute__((cold
)) int
9 set_nomem (void) /* { dg-bogus "function might be candidate for attribute 'cold'" } */
11 return set_error ("Allocation failed");
15 getdata_or_set_error (void)