Source file src/cmd/compile/internal/test/testdata/noalgtflag/main.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 main
     6  
     7  import (
     8  	"cmd/compile/internal/test/testdata/noalgtflag/weak"
     9  	"internal/abi"
    10  )
    11  
    12  var strong any = [8]uint64{}
    13  
    14  func main() {
    15  	if weak.FoldedFlags() != abi.TypeOf(strong).TFlag {
    16  		panic("folded flags disagree with linked descriptor")
    17  	}
    18  }
    19  

View as plain text