MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail298.d
blobaa4f9e84ee71fc76ee431ba679ebcf84b4f9c0d7
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail298.d(12): Error: cannot implicitly convert expression `num1 / cast(ulong)num2` of type `ulong` to `int`
5 ---
6 */
8 void main()
10 ulong num1 = 100;
11 int num2 = 10;
12 int result = num1 / num2;