| 1 |
/* Check that __int128 types are mangled. */ |
| 2 |
/* { dg-do compile { target mips*-*-* } } */ |
| 3 |
// { dg-additional-options -fabi-compat-version=0 } |
| 4 |
|
| 5 |
#ifdef __mips64 |
| 6 |
typedef int int128 __attribute__ ((mode(TI))); |
| 7 |
typedef unsigned int uint128 __attribute__ ((mode(TI))); |
| 8 |
|
| 9 |
struct S |
| 10 |
{ |
| 11 |
int128 i; |
| 12 |
int128 func1 (int128) const { return i; } |
| 13 |
uint128 func2 (uint128) const { return i; } |
| 14 |
}; |
| 15 |
|
| 16 |
int128 (S::*ptr1) (int128) const = &S::func1; |
| 17 |
uint128 (S::*ptr2) (uint128) const = &S::func2; |
| 18 |
#else |
| 19 |
const char *str1 = "_ZNK1S5func1En"; |
| 20 |
const char *str2 = "_ZNK1S5func2Eo"; |
| 21 |
#endif |
| 22 |
|
| 23 |
/* { dg-final { scan-assembler _ZNK1S5func1En } } */ |
| 24 |
/* { dg-final { scan-assembler _ZNK1S5func2Eo } } */ |