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(); }