OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [dfp/] [44473-2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Mangling of classes from std::decimal are special-cased.
4
 
5
namespace std {
6
  namespace decimal {
7
    class decimal64 {
8
      public:
9
        typedef float __decfloat64 __attribute__ ((mode (DD)));
10
        explicit decimal64 (int __r):__val (__r) {}
11
      private:
12
        __decfloat64 __val;
13
    };
14
  }
15
}
16
 
17
int bar (const std::decimal::decimal64 & x) { }
18
 
19
int foo ()
20
{
21
  std::decimal::decimal64 x(0);
22
  bar (x);
23
}
24
 
25
// { dg-final { scan-assembler "_Z3barRKDd:" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.