PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / dfp / mangle-5.C
blob794577f866a381d7befe588ab47e2132c8a0419e
1 // { dg-do compile }
3 // Mangling of classes from std::decimal are special-cased.
4 // Derived from g++.dg/abi/mangle35.C.
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   }
18 template<void (*)()> struct A {};
20 template<typename> void foo();
22 template<typename T> A<foo<T> > bar();
24 void baz()
26   bar<std::decimal::decimal128>();
29 // { dg-final { scan-assembler "_Z3barIDeE1AIX3fooIT_EEEv" } }