1 // { dg-options "-fabi-version=0" }
4 template <typename T> int f ();
11 typedef int (A::*P)();
13 template <P> struct S {};
15 template <typename T> void g (S<&T::template f<int> >) {}
16 template <typename T> void g (S<&T::operator+ >) {}
17 template <typename T> void g (S<&T::operator int>) {}
18 template <typename T> void g (S<&T::template operator- <double> >) {}
20 template void g<A> (S<&A::f<int> >);
21 template void g<A> (S<&A::operator+>);
22 template void g<A> (S<&A::operator int>);
23 template void g<A> (S<&A::operator-<double> >);
25 // { dg-final { scan-assembler _Z1gI1AEv1SIXadsrT_1fIiEEE } }
26 // { dg-final { scan-assembler _Z1gI1AEv1SIXadsrT_plEE } }
27 // { dg-final { scan-assembler _Z1gI1AEv1SIXadsrT_cviEE } }
28 // { dg-final { scan-assembler _Z1gI1AEv1SIXadsrT_miIdEEE } }