repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
go.go-torture
/
execute
/
array-2.go
blob
516a131e4e93f77a6ea7cbe53ed66ff76acd353e
1
package
main
2
3
func
fn
(
a
[]
int
)
int
{
4
alen
:=
len
(
a
);
5
for
i
:=
0
;
i
<
alen
;
i
++ {
6
a
[
i
] =
i
7
}
8
return
alen
;
9
}
10
11
func
main
() {
12
var
a
[
2
]
int
;
13
if
fn
(
a
[
0
:]) !=
2
{
14
panic
(
0
);
15
}
16
if
a
[
0
] !=
0
|| a
[
1
] !=
1
{
17
panic
(
1
);
18
}
19
}