aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr79432.c
blob: 47fef0d48c354b612c7eb3182a67e982fa0ed0a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */

int fn1 (void);
int __attribute__((returns_twice)) vfork (void);

void fn2 ()
{
  int a;
  a = fn1() + 2 + (vfork() + 1 + vfork());
}
void fn3 ()
{
  int a;
  a = fn1() + 1 + vfork();
}
void fn4 ()
{
  int a;
  a = fn1() + vfork();
}