aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr116454-1.c
blob: 6210dcce4a42a226be86252c793867aa5a419b82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do run } */
/* { dg-additional-options "-ffast-math" } */

static int t = 0;
_Complex float f()
{
        t++;
        return 0;
}
int main() {
	t = 0;
	/* Would cause f() to be incorrectly invoked twice. */
	f() * 1j;
	if (t != 1)
          __builtin_abort();
}