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] - Rev 704

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do compile }

// Mangling of classes from std::decimal are special-cased.
// Derived from g++.dg/abi/mangle35.C.

namespace std {
  namespace decimal {
    class decimal128 {
      public:
        typedef float __decfloat128 __attribute__ ((mode (TD)));
        explicit decimal128 (int __r):__val (__r) {}
      private:
        __decfloat128 __val;
    };
  }
}

template<void (*)()> struct A {};

template<typename> void foo();

template<typename T> A<foo<T> > bar();

void baz()
{
  bar<std::decimal::decimal128>();
}

// { dg-final { scan-assembler "_Z3barIDeE1AIX3fooIT_EEEv" } }

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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