Source file src/cmd/compile/internal/test/testdata/noalgtflag/weak/weak.go

     1  // Copyright 2026 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package weak
     6  
     7  import "internal/abi"
     8  
     9  type M map[uint64]uint64
    10  
    11  // Emit a noalg descriptor for [8]uint64.
    12  var Sink any = M{}
    13  
    14  //go:noinline
    15  func FoldedFlags() abi.TFlag {
    16  	return abi.TypeFor[[8]uint64]().TFlag
    17  }
    18  

View as plain text