Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
go.go-torture
/
execute
/
string-2.go
blob: 72b0f23343838cca9776f5b9842bb42ff67ead83 [
file
] [
log
] [
blame
]
package main
func fn(s string) string {
if len(s) != 3 {
panic(0)
}
i := len(s) - 1;
return s + s[0 : i];
}
func main() {
s := fn("abc");
if s != "abcab" {
panic(1)
}
}