summaryrefslogtreecommitdiffstats
path: root/test/fixedbugs/issue37753.go
blob: ac311e371531d6e03524f67c2a7101a2ecb23e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// run

// 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

//go:noinline
func f(a, b uint) int {
	return int(a-b) / 8
}

func main() {
	if x := f(1, 2); x != 0 {
		panic(x)
	}
}