MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag13082.d
blob7360a3df62f20158b6b78b438030778e77cb4cfe
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag13082.d(24): Error: constructor `diag13082.C.this(int a)` is not callable using argument types `(string)`
5 fail_compilation/diag13082.d(24): cannot pass argument `b` of type `string` to parameter `int a`
6 fail_compilation/diag13082.d(25): Error: constructor `diag13082.S.this(int a)` is not callable using argument types `(string)`
7 fail_compilation/diag13082.d(25): cannot pass argument `b` of type `string` to parameter `int a`
8 ---
9 */
11 class C
13 this(int a) {}
16 struct S
18 this(int a) {}
21 void main()
23 string b;
24 auto c = new C(b);
25 auto s = new S(b);