Source file test/fixedbugs/issue32347.go

     1  // compile
     2  
     3  // Copyright 2019 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 32347: gccgo compiler crashes with int-to-string conversion
     8  // with large integer constant operand.
     9  
    10  package p
    11  
    12  const (
    13  	X1 = string(128049)
    14  	X2 = string(-1)
    15  	X3 = string(1<<48)
    16  )
    17  
    18  var S1, S2, S3 = X1, X2, X3
    19  

View as plain text