Source file test/fixedbugs/issue78297.go

     1  // compile
     2  
     3  // Copyright 2026 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 p
     8  
     9  func G[U any]() (u U) { return }
    10  
    11  //go:noinline
    12  func H[U any]() (u U) { return }
    13  
    14  func F[T ~*[1]byte]() {
    15  	_ = G[T]()[:]
    16  	_ = H[T]()[:]
    17  }
    18  
    19  var _ = F[*[1]byte]
    20  

View as plain text