MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail284.d
blobabfad672701084ea0ad035ed6efe252118b7e906
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail284.d(19): Error: `pure` function `fail284.foo` cannot call impure function pointer `a`
5 ---
6 */
8 static int nasty;
10 int impure_evil_function(int x)
12 nasty++;
13 return nasty;
16 pure int foo(int x)
18 int function(int) a = &impure_evil_function;
19 return a(x);