]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail312.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail312.d
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 */
8
9 void main()
10 {
11 int[1] a = 1;
12 short b = 1;
13 assert(a[] == b);
14 assert(a[] <= b);
15 }