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

📄 va-arg-23.c

📁 linux下编程用 编译软件
💻 C
字号:
/* PR 9700 *//* Alpha got the base address for the va_list incorrect when there was   a structure that was passed partially in registers and partially on   the stack.  */#include <stdarg.h>struct two { long x, y; };void foo(int a, int b, int c, int d, int e, struct two f, int g, ...){  va_list args;  int h;  va_start(args, g);  h = va_arg(args, int);  if (g != 1 || h != 2)    abort ();}int main(){  struct two t = { 0, 0 };  foo(0, 0, 0, 0, 0, t, 1, 2);  return 0;}

⌨️ 快捷键说明

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