1 // compile 2 3 // Copyright 2017 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 // Check that we don't crash due to "lost track of variable in 8 // liveness" errors against unused variables. 9 10 package p 11 12 import "strings" 13 14 // Minimized test case from github.com/mvdan/sh/syntax. 15 func F() { 16 var _ = []string{ 17 strings.Repeat("\n\n\t\t \n", 10) + 18 "# " + strings.Repeat("foo bar ", 10) + "\n" + 19 strings.Repeat("longlit_", 10) + "\n", 20 } 21 } 22