mirror of
https://github.com/golang/go
synced 2024-11-18 02:24:45 -07:00
f4b918384d
Temporarily disable a questionable test case in fixedbugs/bug193.go and enable the test as a whole. See the issues below for details. Updates #45114. Updates #45117. Change-Id: I1de6f8d79b592eeeec139cd92b6c9cac56a9a74b Reviewed-on: https://go-review.googlesource.com/c/go/+/303094 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
19 lines
413 B
Go
19 lines
413 B
Go
// errorcheck
|
|
|
|
// Copyright 2009 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 main() {
|
|
s := uint(10)
|
|
ss := 1 << s
|
|
y1 := float64(ss)
|
|
y2 := float64(1 << s) // ERROR "shift"
|
|
// see issues #45114, #45117
|
|
// y3 := string(1 << s) // DISABLED "shift"
|
|
y3 := 0
|
|
_, _, _, _, _ = s, ss, y1, y2, y3
|
|
}
|