3 // Copyright 2011 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Issue 2206. Incorrect sign extension of div arguments.
19 five(int64(5 / (5 / 3)))
22 five(int64(byte(5) / (byte(5) / byte(3))))
26 five(int64(a / (a / b)))
28 // integer divide by zero in golang.org sandbox
31 five(int64(x[2] / (x[2] / x[1])))
33 // integer divide by zero in golang.org sandbox
34 // crash on windows/amd64
36 five(int64(y[1] / (y[1] / y[0])))