blob: 4cd9ec28130a3f814b7c83ae073e8cc9ac1d08f2 [file] [log] [blame]
Rémy Oudompheng2ece2f52012-02-18 22:15:42 +01001// run
Russ Cox2281ca12011-01-06 11:21:18 -05002
Emmanuel Odeke53fd5222016-04-10 14:32:26 -07003// Copyright 2011 The Go Authors. All rights reserved.
Russ Cox2281ca12011-01-06 11:21:18 -05004// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
9func main() {
10 x := []uint{0}
11 x[0] &^= f()
12}
13
14func f() uint {
15 return 1<<31 // doesn't panic with 1<<31 - 1
16}