1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wsuggest-attribute=pure" } */
5 extern int do_expensive_calculation(void);
8 int getval(void) /* { dg-bogus "candidate for attribute" } */
10 static int cache
= -1;
12 cache
= do_expensive_calculation();