Source file src/crypto/internal/fips140/compile_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 fips140
     6  
     7  import "testing"
     8  
     9  // This test checks that we can compile and link specific
    10  // code patterns in a FIPS package, where there are restrictions
    11  // on what relocations are allowed to use.
    12  
    13  type testType struct {
    14  	A, B, C string
    15  }
    16  
    17  func TestCompile(t *testing.T) {
    18  	var a []testType
    19  	a = append(a, testType{
    20  		A: "",
    21  		B: "",
    22  		C: "",
    23  	})
    24  }
    25  

View as plain text