Debian Codegraph @

gcc/testsuite/g++.dg/dfp/mangle-4.C

raw
1 // { dg-do compile }
2
3 // Mangling of classes from std::decimal are special-cased.
4 // Derived from g++.dg/abi/mangle30.C.
5
6 namespace std {
7 namespace decimal {
8 class decimal64 {
9 public:
10 typedef float __decfloat64 __attribute__ ((mode (DD)));
11 explicit decimal64 (int __r):__val (__r) {}
12 private:
13 __decfloat64 __val;
14 };
15 }
16 }
17
18 struct A
19 {
20 template <class T>
21 struct B
22 {
23 typedef T myT;
24 };
25 };
26
27 template <class T>
28 void f (T t, typename T::template B<std::decimal::decimal64>::myT u, typename T::template B<int>::myT v);
29
30 void foo ()
31 {
32 f (A(), std::decimal::decimal64(0), 1);
33 }
34
35 // { dg-final { scan-assembler "_Z1fI1AEvT_NS1_1BIDdE3myTENS2_IiE3myTE" } }