MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail16600.d
blob3bd600e507b866bcf3a3935d8c6947d63cd28178
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/fail16600.d(22): Error: `fail16600.S.__ctor` called with argument types `(string) const` matches both:
4 fail_compilation/fail16600.d(16): `fail16600.S.this(string __param_0)`
5 and:
6 fail_compilation/fail16600.d(17): `fail16600.S.this(string __param_0) immutable`
7 ---
8 */
10 // https://issues.dlang.org/show_bug.cgi?id=16600
12 struct S
14 int i;
16 this(string) { i = 1; }
17 this(string) immutable { i = 2; }
20 void main()
22 auto a = const(S)("abc");
23 assert(a.i == 2);