github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/unused/testdata/src/example.com/constexpr/constexpr.go (about) 1 package pkg 2 3 import ( 4 "io" 5 "unsafe" 6 ) 7 8 // https://staticcheck.dev/issues/812 9 10 var ( 11 w io.Writer //@ used("w", true) 12 sz = unsafe.Sizeof(w) //@ used("sz", true) 13 ) 14 15 var _ = sz //@ used("_", true) 16 17 type t struct { //@ used("t", true) 18 F int //@ used("F", true) 19 } 20 21 const S = unsafe.Sizeof(t{}) //@ used("S", true)