Source file src/simd/testdata/b81614a/main/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  	"b81614/lib"
     9  )
    10  
    11  var sink any
    12  
    13  func main() {
    14  	// lib.F is a function returning simd type, w/o importing "simd"
    15  	_ = lib.F
    16  	var v = lib.F()
    17  	sink = v.Len() // v has a simd type, and simd methods.
    18  }
    19  

View as plain text