repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail312.d
blob
7260697e0ab0ecf2c6cdd8929d6c84b0f49170cd
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
}