Source file test/fixedbugs/issue38698.go

     1  // compile
     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 test case caused a panic in the compiler's DWARF gen code.
     8  
     9  package p
    10  
    11  func ff( /*line :10*/ x string) bool {
    12  	{
    13  		var _ /*line :10*/, x int
    14  		_ = x
    15  	}
    16  	return x == ""
    17  }
    18  
    19  
    20  func h(a string) bool {
    21  	return ff(a)
    22  }
    23  
    24  

View as plain text