aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lto/pr54625-2_1.C
blob: 09c365d2354e92e8119dd1a6d4661e0d733bee74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
extern "C" double sin (double);
typedef double (*UnaryFunType) (double);
class A
{
public:
  int hash ();
  void lookup (UnaryFunType p1)
    {
      int a = hash ();
      p1 (0);
    }
};
A b, c;
void
math_sin_impl ()
{
  b.lookup (sin);
}

void
js_math_sqrt ()
{
  c.lookup (0);
}