Source file test/fixedbugs/issue26163.go

     1  // compile -N -d=softfloat
     2  
     3  // Copyright 2018 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 26163: dead store generated in late opt messes
     8  // up store chain calculation.
     9  
    10  package p
    11  
    12  var i int
    13  var A = ([]*int{})[i]
    14  
    15  var F func(float64, complex128) int
    16  var C chan complex128
    17  var B = F(1, 1+(<-C))
    18  

View as plain text