⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 20020224-1.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
字号:
/* PR target/5755   This testcase failed because the caller of a function returning struct   expected the callee to pop up the hidden return structure pointer,   while callee was actually not poping it up (as the hidden argument   was passed in register).  *//* { dg-do run { target i?86-*-* } } *//* { dg-options "-O2 -fomit-frame-pointer" } */extern void abort (void);extern void exit (int);typedef struct {   int a1, a2;} A;A a;A __attribute__ ((regparm (2)))foo (int x){  return a;}int __attribute__ ((regparm (2)))bar (int x){  int r = foo(0).a2;  return r;}intmain (){  int f;  a.a1 = 530;  a.a2 = 980;  f = bar (0);  if (f != 980)    abort ();  exit (0);}

⌨️ 快捷键说明

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