PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / local-fn2.C
blob98525fd8d021222191b1a3354642e1f194b0de1e
1 // PR c++/80856
2 // { dg-do compile { target c++11 } }
4 template<typename T>
5 inline T WrapToCycle(T degrees)
7   int Wrap(int x, int lower_bound, int upper_bound);
9   auto p = Wrap;
10   p (1, 0, 360);
12   double Wrap(double x, int lower_bound, int upper_bound);
14   Wrap(1, 0, 360);
15   return Wrap(degrees, 0, 360);
18 void GenerateOldReportPage()
20   WrapToCycle(0);