aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr108970.c
blob: 7def8afd5e36480bc42508035639072e31fbb277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-O1 -ftree-loop-vectorize -fno-tree-dce -fno-tree-scev-cprop" } */

int m;

__attribute__ ((noinline, returns_twice)) void
empty (void)
{
}

void
foo (void)
{
  while (m < 1)
    {
      empty ();
      ++m;
    }
}