summaryrefslogtreecommitdiffstats
path: root/test/fixedbugs/bug445.go
blob: 45c32902e58d91bf87e9b5bfcdded7d87c114719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// compile

// Copyright 2012 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 3765

package main

func f(x uint) uint {
	m := ^(1 << x)
	return uint(m)
}