summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20031102-1.c
blob: e32b8bd8612269e201e51c89d2f45853ad1be382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR optimization/10817.
   Check that the following code doesn't cause any problems
   for GCC's if-conversion passes.  */

int foo(int t)
{
  int result = 0;
  if (t != 0)
    result = t;
  return result;
}