MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail22039.d
blob3df834f7ad0d3e8e7d92275a6709b8ee4030903a
1 // https://issues.dlang.org/show_bug.cgi?id=22039
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail22039.d(11): Error: recursive evaluation of `func()`
7 fail_compilation/fail22039.d(14): Error: recursive evaluation of `gun(func2())`
8 ---
9 */
11 int func(int x = func()) { return x; }
13 int gun() { return 2; }
14 int func2(int x = gun(func2())) { return x; }