modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/20011217-1.c (about)

     1  /* Test that the initializer of a compound literal is properly walked
     2     when tree inlining.  */
     3  /* Origin: PR c/5105 from <aj@suse.de>.  */
     4  
     5  typedef struct { long p; } pt;
     6  
     7  inline pt f (pt _p)
     8  {
     9    long p = _p.p;
    10  
    11    return (pt) { (p) };
    12  }
    13  
    14  static int mmap_mem (void)
    15  {
    16    pt p;
    17    p = f (p);
    18  
    19    return 0;
    20  }