fail35-frag.c

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

C
24
字号
#include <stdlib.h>struct k{  int p;  struct {    int m;  } q;};intmain (){  volatile struct k *l = malloc (sizeof (int)); /* make it only big enough for k.p */  /* Confirm that we instrument this nested construct     COMPONENT_REF(COMPONENT_REF(INDIRECT_REF)). */  l->q.m = 5;  return 0;}/* { dg-output "mudflap violation 1.*" } *//* { dg-output "Nearby object.*" } *//* { dg-output "mudflap object.*" } *//* { dg-do run { xfail *-*-* } } */

⌨️ 快捷键说明

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