...
Run Format

Source file test/fixedbugs/issue11370.go

Documentation: test/fixedbugs

     1  // compile
     2  
     3  // Copyright 2015 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 11370: cmd/compile: "0"[0] should not be a constant
     8  
     9  package p
    10  
    11  func main() {
    12  	println(-"abc"[1] >> 1)
    13  }
    14  

View as plain text