1// compile 2 3// Copyright 2012 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 4614: slicing of nil slices confuses the compiler 8// with a uintptr(nil) node. 9 10package p 11 12import "unsafe" 13 14var n int 15 16var _ = []int(nil)[1:] 17var _ = []int(nil)[n:] 18 19var _ = uintptr(unsafe.Pointer(nil)) 20var _ = unsafe.Pointer(uintptr(0)) 21