summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr36978.c
blob: cd1af4ebc081efec26927d18cab4fb56c73d93b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-funswitch-loops" } */

unsigned short status;
void foo (const _Bool flag)
{
  if (status == 2 || status == 7)
    {
      while (status != 2 && (status != 7 || !flag))
	{
	}
    }
}