aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/mangle6.C
blob: e17ee7e653b6f79852bb631338d5616569a10707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Check that __int128 types are mangled.  */
/* { dg-do compile { target mips64*-*-* } } */

typedef int int128 __attribute__ ((mode(TI)));
typedef unsigned int uint128 __attribute__ ((mode(TI)));

struct S
{
  int128 i;
  int128 func1 (int128) const { return i; }
  uint128 func2 (uint128) const { return i; }
};

int128 (S::*ptr1) (int128) const = &S::func1;
uint128 (S::*ptr2) (uint128) const = &S::func2;

/* { dg-final { scan-assembler _ZNK1S5func1En } } */
/* { dg-final { scan-assembler _ZNK1S5func2Eo } } */