summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr15825-1.c
blob: a4b46d44404da8061147956f11aa1d63c1e1c012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR middle-end/15825 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

unsigned int foo(long long high, int unsigned_p)
{
  int i;
  if (high < 0)
    if (!unsigned_p)
    {
      i = 1;
      goto t;
    }
  i = 0;
t:
  return i;
}