Source file src/crypto/internal/fips/check/checktest/test.go
1 // Copyright 2024 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 checktest defines some code and data for use in 6 // the crypto/internal/fips/check test. 7 package checktest 8 9 import _ "crypto/internal/fips/check" 10 11 var NOPTRDATA int = 1 12 13 var RODATA int32 // set to 2 in asm.s 14 15 // DATA needs to have both a pointer and an int so that _some_ of it gets 16 // initialized at link time, so it is treated as DATA and not BSS. 17 // The pointer is deferred to init time. 18 var DATA = struct { 19 P *int 20 X int 21 }{&NOPTRDATA, 3} 22 23 var NOPTRBSS int 24 25 var BSS *int 26 27 func TEXT() {} 28