Source file test/fixedbugs/issue73748a.go

     1  // run
     2  
     3  // Copyright 2025 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  package main
     8  
     9  import (
    10  	"context"
    11  	"io"
    12  	"runtime/trace"
    13  )
    14  
    15  type T struct {
    16  	a [16]int
    17  }
    18  
    19  //go:noinline
    20  func f(x *T) {
    21  	*x = T{}
    22  }
    23  
    24  func main() {
    25  	trace.Start(io.Discard)
    26  	defer func() {
    27  		recover()
    28  		trace.Log(context.Background(), "a", "b")
    29  
    30  	}()
    31  	f(nil)
    32  }
    33  

View as plain text