1/* { dg-do compile } */
2/* { dg-options "-O -march=core2 -mfpmath=sse,387 -ffast-math" } */
3
4extern double log (double x);
5extern int f (void);
6
7double cached_value;
8
9void g (void)
10{
11  cached_value = log (f ());
12}
13