mangle6.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 24 行

C
24
字号
/* Check that __int128 types are mangled.  *//* { dg-do compile { target mips*-*-* } } */#ifdef __mips64typedef 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;#elseconst char *str1 = "_ZNK1S5func1En";const char *str2 = "_ZNK1S5func2Eo";#endif/* { dg-final { scan-assembler _ZNK1S5func1En } } *//* { dg-final { scan-assembler _ZNK1S5func2Eo } } */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?