3 // Mangling of classes from std::decimal are special-cased.
4 // Derived from g++.dg/abi/mangle13.C.
10 typedef float __decfloat64 __attribute__ ((mode (DD)));
11 explicit decimal64 (float __r):__val (__r) {}
19 template <typename T> std::decimal::decimal64 f ();
20 std::decimal::decimal64 operator+();
21 operator std::decimal::decimal64 ();
23 std::decimal::decimal64 operator-();
26 typedef std::decimal::decimal64 (A::*P)();
28 template <P> struct S {};
30 template <typename T> void g (S<&T::template f<std::decimal::decimal64> >) {}
31 template <typename T> void g (S<&T::operator+ >) {}
32 template <typename T> void g (S<&T::operator std::decimal::decimal64>) {}
33 template <typename T> void g (S<&T::template operator- <std::decimal::decimal64> >) {}
35 template void g<A> (S<&A::f<std::decimal::decimal64> >);
36 template void g<A> (S<&A::operator+>);
37 template void g<A> (S<&A::operator std::decimal::decimal64>);
39 // { dg-final { scan-assembler "\n?_Z1gI1AEv1SIXadsrT_1fIDdEEE\[: \t\n\]" } }
40 // { dg-final { scan-assembler "\n?_Z1gI1AEv1SIXadsrT_plEE\[: \t\n\]" } }