aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/950221-1.c
blob: 14147638668c1362ab2926b53bd4bb4fbdf5b9bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
short v = -1;

typedef struct
{
  short network;
} atype;

void f ()
{
  static atype config;
  atype *cp;
  short net;
  cp = &config;
  cp->network = (v == -1) ? 100 : v;
  net = cp->network;
}