modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/pr60072.c (about)

     1  /* PR target/60072 */
     2  
     3  int c = 1;
     4  
     5  __attribute__ ((optimize (1)))
     6  static int *foo (int *p)
     7  {
     8    return p;
     9  }
    10  
    11  int
    12  main ()
    13  {
    14    *foo (&c) = 2;
    15    return c - 2;
    16  }