summaryrefslogtreecommitdiffstats
path: root/test/fixedbugs/issue11370.go
blob: 30f2904550a26896803d6e0a9a6bb6f2b50545c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// compile

// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// issue 11370: cmd/compile: "0"[0] should not be a constant

package p

func main() {
	println(-"abc"[1] >> 1)
}