Source file test/fixedbugs/issue49619.go

     1  // build
     2  
     3  // Copyright 2021 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  // This testcase caused a linker crash in DWARF generation.
     8  
     9  package main
    10  
    11  //go:noinline
    12  func f() any {
    13  	var a []any
    14  	return a[0]
    15  }
    16  
    17  func main() {
    18  	f()
    19  }
    20  

View as plain text