MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice10273.d
blob763fc06a0bbbb212e71b898f0b7278cb014f9323
1 // https://issues.dlang.org/show_bug.cgi?id=10273
2 // ICE in CTFE
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/ice10273.d(14): Error: cannot implicitly convert expression `3.45` of type `double` to `int`
7 fail_compilation/ice10273.d(13): Error: CTFE failed because of previous errors in `Bug10273.init`
8 fail_compilation/ice10273.d(22): called from here: `bug10273()`
9 fail_compilation/ice10273.d(22): while evaluating: `static assert(bug10273())`
10 ---
13 struct Bug10273 {
14 int val = 3.45;
16 int bug10273()
18 Bug10273 p;
19 return 1;
22 static assert(bug10273());