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

     1  short v = -1;
     2  
     3  typedef struct
     4  {
     5    short network;
     6  } atype;
     7  
     8  void f ()
     9  {
    10    static atype config;
    11    atype *cp;
    12    short net;
    13    cp = &config;
    14    cp->network = (v == -1) ? 100 : v;
    15    net = cp->network;
    16  }