Source file test/fixedbugs/issue20097.go
1 // compile 2 3 // Copyright 2017 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. 6 7 // Issue 20097: ensure that we CSE multiple Select ops with 8 // the same underlying type 9 10 package main 11 12 type T int64 13 14 func f(x, y int64) (int64, T) { 15 a := x / y 16 b := T(x) / T(y) 17 return a, b 18 } 19