MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail8313.d
blob2badeff454bc474a7c229f15c65e97406b174e83
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail8313.d(13): Error: `fail8313.bar` called with argument types `(int)` matches both:
5 fail_compilation/fail8313.d(11): `fail8313.bar!().bar(int x)`
6 and:
7 fail_compilation/fail8313.d(12): `fail8313.bar!().bar(int x)`
8 fail_compilation/fail8313.d(13): while evaluating: `static assert(bar()(int x)(1))`
9 ---
11 auto bar()(int x){return x;}
12 auto bar()(int x = bar()){return x;}
13 static assert(bar(1));