• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package main
6
7import "strings"
8
9func init() {
10	register("stringconcat", stringconcat)
11}
12
13func stringconcat() {
14	s0 := strings.Repeat("0", 1<<10)
15	s1 := strings.Repeat("1", 1<<10)
16	s2 := strings.Repeat("2", 1<<10)
17	s3 := strings.Repeat("3", 1<<10)
18	s := s0 + s1 + s2 + s3
19	panic(s)
20}
21