summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug445.go
blob: 497ecd3abaeb74cbf572d61a34fce184537b609b (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)
}