mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00:00
![Xiangdong Ji](/assets/img/avatar_default.png)
Flag constant Ops on arm and arm64 are under refactoring, this change adds a couple of testcases that verify the behavior of 'noov' branches. Updates #39505 Updates #38740 Updates #39303 Change-Id: I493344b52276900cd296c32da494d72932dfc9be Reviewed-on: https://go-review.googlesource.com/c/go/+/238677 Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
32 lines
613 B
Go
32 lines
613 B
Go
// compile
|
|
|
|
// Copyright 2020 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package p
|
|
|
|
func f() {
|
|
if len([]int{})-1 < len([]int{}) {
|
|
}
|
|
|
|
var st struct {
|
|
i int
|
|
}
|
|
g := func() string {
|
|
return ""
|
|
}
|
|
h := func(string) string {
|
|
return g() + g()
|
|
}
|
|
s, i := "", 0
|
|
|
|
st.i = len(s)
|
|
i = len(h(s[i+0:i+1])) + len(s[len(s)+1:i+1])
|
|
s = s[(len(s[i+1:len(s)+1])+1):len(h(""))+1] + (s[i+1 : len([]int{})+i])
|
|
i = 1 + len([]int{len([]string{s[i+len([]int{}) : len(s)+i]})})
|
|
|
|
var ch chan int
|
|
ch <- len(h("")) - len(s)
|
|
}
|