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
/
string-2.go
blob
72b0f23343838cca9776f5b9842bb42ff67ead83
1
package
main
2
3
func
fn
(
s
string
)
string
{
4
if
len
(
s
) !=
3
{
5
panic
(
0
)
6
}
7
i
:=
len
(
s
) -
1
;
8
return
s
+
s
[
0
:
i
];
9
}
10
11
func
main
() {
12
s
:=
fn
(
"abc"
);
13
if
s
!=
"abcab"
{
14
panic
(
1
)
15
}
16
}