summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/200031109-1.c
blob: d1d495bac1860051f1ce19ea274687626537552d (plain)
1
2
3
4
5
6
7
8
9
10
11
/* For a short time on the tree-ssa branch this would warn that
   value was not initialized as it was optimizing !(value = (m?1:2))
   to 0 and not setting value before.  */

int t(int m)
{
  int value;
  if (!(value = (m?1:2)))
    value = 0;
  return value;
}