mirror of
https://github.com/golang/go
synced 2024-11-26 16:57:14 -07:00
test: enable fixedbugs/bug193.go for -G compiler option
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>
This commit is contained in:
parent
cd26192aba
commit
f4b918384d
@ -11,6 +11,8 @@ func main() {
|
|||||||
ss := 1 << s
|
ss := 1 << s
|
||||||
y1 := float64(ss)
|
y1 := float64(ss)
|
||||||
y2 := float64(1 << s) // ERROR "shift"
|
y2 := float64(1 << s) // ERROR "shift"
|
||||||
y3 := string(1 << s) // ERROR "shift"
|
// see issues #45114, #45117
|
||||||
|
// y3 := string(1 << s) // DISABLED "shift"
|
||||||
|
y3 := 0
|
||||||
_, _, _, _, _ = s, ss, y1, y2, y3
|
_, _, _, _, _ = s, ss, y1, y2, y3
|
||||||
}
|
}
|
||||||
|
@ -1939,7 +1939,6 @@ var excluded = map[string]bool{
|
|||||||
"writebarrier.go": true, // correct diagnostics, but different lines (probably irgen's fault)
|
"writebarrier.go": true, // correct diagnostics, but different lines (probably irgen's fault)
|
||||||
|
|
||||||
"fixedbugs/bug176.go": true, // types2 reports all errors (pref: types2)
|
"fixedbugs/bug176.go": true, // types2 reports all errors (pref: types2)
|
||||||
"fixedbugs/bug193.go": true, // types2 bug: shift error not reported (fixed in go/types)
|
|
||||||
"fixedbugs/bug195.go": true, // types2 reports slightly different (but correct) bugs
|
"fixedbugs/bug195.go": true, // types2 reports slightly different (but correct) bugs
|
||||||
"fixedbugs/bug228.go": true, // types2 not run after syntax errors
|
"fixedbugs/bug228.go": true, // types2 not run after syntax errors
|
||||||
"fixedbugs/bug231.go": true, // types2 bug? (same error reported twice)
|
"fixedbugs/bug231.go": true, // types2 bug? (same error reported twice)
|
||||||
|
Loading…
Reference in New Issue
Block a user