Source file test/fixedbugs/issue38746.go

     1  // compile
     2  
     3  // Copyright 2020 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  package main
     8  
     9  var g *uint64
    10  
    11  func main() {
    12  	var v uint64
    13  	g = &v
    14  	v &^= (1 << 31)
    15  	v |= 1 << 63
    16  	v &^= (1 << 63)
    17  }
    18  

View as plain text