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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [dfp/] [mangle-5.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
// Derived from g++.dg/abi/mangle35.C.
5
 
6
namespace std {
7
  namespace decimal {
8
    class decimal128 {
9
      public:
10
        typedef float __decfloat128 __attribute__ ((mode (TD)));
11
        explicit decimal128 (int __r):__val (__r) {}
12
      private:
13
        __decfloat128 __val;
14
    };
15
  }
16
}
17
 
18
template struct A {};
19
 
20
template void foo();
21
 
22
template A > bar();
23
 
24
void baz()
25
{
26
  bar();
27
}
28
 
29
// { dg-final { scan-assembler "_Z3barIDeE1AIX3fooIT_EEEv" } }

powered by: WebSVN 2.1.0

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