blob: 1ce17c0f67fe219b4a44f5e2cfc0e1191b0e0a74 [file]
// Copyright 2026 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build goexperiment.simd
package main
// For testing purposes, this SHOULD compile, because
// the "simd" type whose unsafe.Sizeof is used in a
// constant context, is from some other package whose
// name (but not path) happens to be "simd".
import (
"simd/testdata/simd"
"unsafe"
)
var v [1]simd.HasConstantSize24
var u [unsafe.Sizeof(v)]byte
func main() {
if len(u) != 24 {
println("FAIL")
}
}