Help us shape the future of Go! Take the 2026 Go Developer Survey

Source file src/internal/goarch/goarch_test.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 goarch_test
     6  
     7  import (
     8  	"internal/goarch"
     9  	"testing"
    10  	"unsafe"
    11  )
    12  
    13  func TestInt64Align(t *testing.T) {
    14  	if got, want := uintptr(goarch.Int64Align), unsafe.Alignof(int64(0)); got != want {
    15  		t.Fatalf("Int64Align = %d, want %d", got, want)
    16  	}
    17  }
    18  

View as plain text