Home | History | Annotate | Download | only in fixedbugs
      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 
     10 package p
     11 
     12 import "unsafe"
     13 
     14 var n int
     15 
     16 var _ = []int(nil)[1:]
     17 var _ = []int(nil)[n:]
     18 
     19 var _ = uintptr(unsafe.Pointer(nil))
     20 var _ = unsafe.Pointer(uintptr(0))
     21