modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/execute/950221-1.c (about)

     1  struct parsefile
     2  {
     3    long fd;
     4    char *buf;
     5  };
     6  struct parsefile basepf;
     7  struct parsefile *parsefile = &basepf;
     8  #ifdef STACK_SIZE
     9  int filler[STACK_SIZE / (2*sizeof(int))];
    10  #else
    11  int filler[0x3000];
    12  #endif
    13  int el;
    14  
    15  char *
    16  g1 (a, b)
    17       int a;
    18       int *b;
    19  {
    20  }
    21  
    22  g2 (a)
    23       long a;
    24  {
    25    if (a != 0xdeadbeefL)
    26      abort ();
    27    exit (0);
    28  }
    29  
    30  f ()
    31  {
    32    register char *p, *q;
    33    register int i;
    34    register int something;
    35  
    36    if (parsefile->fd == 0L && el)
    37      {
    38        const char *rl_cp;
    39        int len;
    40        rl_cp = g1 (el, &len);
    41        strcpy (p, rl_cp);
    42      }
    43    else
    44      {
    45      alabel:
    46        i = g2 (parsefile->fd);
    47      }
    48  }
    49  
    50  main ()
    51  {
    52    el = 0;
    53    parsefile->fd = 0xdeadbeefL;
    54    f ();
    55  }