[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr54625-1_1.C
blob3d5f05e361d5246301ce864806cc038c451256a9
1 extern "C" double sin (double);
2 typedef double UnaryFunType (double);
3 #pragma GCC diagnostic ignored "-Wreturn-type"
4 class A
6 public:
7   int hash ();
8   double lookup (UnaryFunType p1)
9     {
10       int a = hash ();
11       if (p1)
12         return 0;
13     }
15 A b;
16 void
17 math_sin_impl ()
19   b.lookup (sin);