gcc/testsuite/gdc.test/fail_compilation/fail312.d
raw| 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 | } |