mirror of
https://github.com/golang/go
synced 2024-11-23 10:40:08 -07:00
d7c99cdf9f
Backends do not exactly expect receiving binary operators with constant operands or use workarounds to move them to register/stack in order to handle them. Fixes #5841. R=golang-dev, daniel.morsing, rsc CC=golang-dev https://golang.org/cl/11107044
17 lines
332 B
Go
17 lines
332 B
Go
// build
|
|
|
|
// Copyright 2013 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.
|
|
|
|
// Issue 5841: 8g produces invalid CMPL $0, $0.
|
|
// Similar to issue 5002, used to fail at link time.
|
|
|
|
package main
|
|
|
|
func main() {
|
|
var y int
|
|
if y%1 == 0 {
|
|
}
|
|
}
|