]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/abi/mangle13.C
Fix PR70182 -- missing "on" in mangling of unresolved operators
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / abi / mangle13.C
1 // { dg-options "-fabi-version=10" }
2
3 struct A {
4 template <typename T> int f ();
5 int operator+();
6 operator int ();
7 template <typename T>
8 int operator-();
9 };
10
11 typedef int (A::*P)();
12
13 template <P> struct S {};
14
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> >) {}
19
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> >);
24
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 } }