aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/empty2.c
blob: 7b91fb2614a9c3fccede62303c32d2490130f2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */

double d=0;

struct A {} a;

void foo(struct A x)
{
  d=0;
}

void bar()
{
  if (d) foo(a);
}