2 // { dg-do compile { target c++11 } }
8 template<class T> bool foo();
20 template<class T> bool foo();
25 decltype(&S::bar<int>) a;
28 (void*)(&S::foo<int>);
30 decltype(&S::foo<int>) b;
33 (void*)(&N1::foo<int>);
34 (void)(&N1::foo<int>);
35 decltype(&N1::foo<int>) c;
36 typeid(&N1::foo<int>);
40 decltype(&foo<int>) d;