summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/dfp/44473-2.C
blob: 311f62299b38e9109eb6500739c9996dde16e78b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do compile }

// Mangling of classes from std::decimal are special-cased.

namespace std {
  namespace decimal {
    class decimal64 {
      public:
	typedef float __decfloat64 __attribute__ ((mode (DD)));
	explicit decimal64 (int __r):__val (__r) {}
      private:
	__decfloat64 __val;
    };
  }
}

int bar (const std::decimal::decimal64 & x) { }

int foo ()
{
  std::decimal::decimal64 x(0);
  bar (x);
}

// { dg-final { scan-assembler "_Z3barRKDd:" } }