diff options
author | Filippo Valsorda <filippo@golang.org> | 2020-12-07 12:33:25 +0100 |
---|---|---|
committer | Filippo Valsorda <filippo@golang.org> | 2020-12-07 12:33:25 +0100 |
commit | f78276931172f6781bd448a010b547a9517abe41 (patch) | |
tree | 6973d7802de34bad75bfac9c89a4894ee36a1199 /test/fixedbugs/issue42753.go | |
parent | 11087322f85d5ace6494fc194982d92f0a34df0f (diff) | |
parent | 9b955d2d3fcff6a5bc8bce7bafdc4c634a28e95b (diff) | |
download | go-f78276931172f6781bd448a010b547a9517abe41.tar.gz go-f78276931172f6781bd448a010b547a9517abe41.zip |
[dev.boringcrypto.go1.15] all: merge go1.15.6 into dev.boringcrypto.go1.15
Change-Id: I0c17db50b6cab4b59d26e8e247870c0d709665b5
Diffstat (limited to 'test/fixedbugs/issue42753.go')
-rw-r--r-- | test/fixedbugs/issue42753.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fixedbugs/issue42753.go b/test/fixedbugs/issue42753.go new file mode 100644 index 0000000000..a998d1d3b3 --- /dev/null +++ b/test/fixedbugs/issue42753.go @@ -0,0 +1,13 @@ +// compile -d=ssa/check/on + +// 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 main + +func f() uint32 { + s := "\x01" + x := -int32(s[0]) + return uint32(x) & 0x7fffffff +} |