OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle6.C] - Rev 307

Go to most recent revision | Compare with Previous | Blame | View Log

/* Check that __int128 types are mangled.  */
/* { dg-do compile { target mips*-*-* } } */

#ifdef __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;
#else
const char *str1 = "_ZNK1S5func1En";
const char *str2 = "_ZNK1S5func2Eo";
#endif

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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.