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
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail11503b.d
blob
ebfbbfdc4472158bf9f368d8bb6c2e801a4e5bfe
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail11503b.d(17): Error: cannot implicitly convert expression `makes()` of type `immutable(int[])` to `int[]`
5
---
6
*/
7
immutable int
[]
x
= [
1
,
2
,
3
];
8
9
auto
makes
()
pure
10
{
11
return
x
;
12
}
13
14
int
main
()
15
{
16
auto
a
=
x
;
17
int
[]
b
=
makes
();
18
return
b
[
1
];
19
}