/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / paren2.C
blobb4a721f115043d34385d49fe41030e6a2925eff0
1 // PR c++/69736
2 // { dg-do compile { target c++14 } }
4 void fn1(bool = true)
6   (fn1)();
9 template <typename T>
10 void fn2(T a = true)
12   (fn1)();
15 void foo ()
17   (fn2<bool>)();
20 struct X
22   static void fn3(bool = true)
23   {
24     (X::fn3)();
25   }
27   void fn4(bool = true)
28   {
29     (X::fn4)();
30   }