Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.dg / abi / mangle6.C
blob280fe2499802a14d252862b2375f02b2bab5ce93
1 /* Check that __int128 types are mangled.  */
2 /* { dg-do compile { target mips*-*-* } } */
4 #ifdef __mips64
5 typedef int int128 __attribute__ ((mode(TI)));
6 typedef unsigned int uint128 __attribute__ ((mode(TI)));
8 struct S
10   int128 i;
11   int128 func1 (int128) const { return i; }
12   uint128 func2 (uint128) const { return i; }
15 int128 (S::*ptr1) (int128) const = &S::func1;
16 uint128 (S::*ptr2) (uint128) const = &S::func2;
17 #else
18 const char *str1 = "_ZNK1S5func1En";
19 const char *str2 = "_ZNK1S5func2Eo";
20 #endif
22 /* { dg-final { scan-assembler _ZNK1S5func1En } } */
23 /* { dg-final { scan-assembler _ZNK1S5func2Eo } } */