xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/abi/mangle6.C (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1 /* Check that __int128 types are mangled.  */
2 /* { dg-do compile { target mips64*-*-* mipsisa64*-*-* } } */
3 
4 typedef int int128 __attribute__ ((mode(TI)));
5 typedef unsigned int uint128 __attribute__ ((mode(TI)));
6 
7 struct S
8 {
9   int128 i;
func1S10   int128 func1 (int128) const { return i; }
func2S11   uint128 func2 (uint128) const { return i; }
12 };
13 
14 int128 (S::*ptr1) (int128) const = &S::func1;
15 uint128 (S::*ptr2) (uint128) const = &S::func2;
16 
17 /* { dg-final { scan-assembler _ZNK1S5func1En } } */
18 /* { dg-final { scan-assembler _ZNK1S5func2Eo } } */
19