aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr103458.c
blob: 3fd3b5fd2ffbc46d47e309bd34d389753875f1c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-additional-options "-Wno-div-by-zero" } */

__attribute__ ((returns_twice)) int
bar (void);

void
foo (int *p, int x)
{
  *p = 0;
  while (*p < 1)
    {
      x = 0;
      while (x < 1)
        bar ();

      x /= 0;
    }

  foo (p, x);
}