d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail312.d
blob7260697e0ab0ecf2c6cdd8929d6c84b0f49170cd
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail312.d(13): Error: incompatible types for `(a[]) == (b)`: `int[]` and `short`
5 fail_compilation/fail312.d(14): Error: incompatible types for `(a[]) <= (b)`: `int[]` and `short`
6 ---
7 */
9 void main()
11 int[1] a = 1;
12 short b = 1;
13 assert(a[] == b);
14 assert(a[] <= b);