tests/attrtest: move decl to non-test file

Solves the asmdecl error:

  [amd64] AttrTest: function AttrTest missing Go declaration

Updates #24
This commit is contained in:
Michael McLoughlin
2019-01-13 11:51:02 -08:00
parent a23fe8ee57
commit 16c602d345
5 changed files with 9 additions and 9 deletions

View File

@@ -2,12 +2,8 @@ package textflag
import "testing"
//go:generate go run make_attrtest.go -output zattrtest.s -seed 42 -num 256
func AttrTest() bool
func TestAttributes(t *testing.T) {
if !AttrTest() {
if !attrtest() {
t.Fail()
}
}