From 179bcd787e4a5c4cfe475fd6fd33a41d77751113 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 24 Mar 2021 13:18:13 -0700 Subject: [PATCH] test: only run bug513.go if cgo is enabled Change-Id: I868eeb79edaba9e3afc1407ae18b89daf7e67037 Reviewed-on: https://go-review.googlesource.com/c/go/+/304570 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Matthew Dempsky TryBot-Result: Go Bot --- test/fixedbugs/bug513.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fixedbugs/bug513.go b/test/fixedbugs/bug513.go index f7604f681c5..459a9c396ac 100644 --- a/test/fixedbugs/bug513.go +++ b/test/fixedbugs/bug513.go @@ -1,5 +1,6 @@ // run -race -gcflags=all=-d=checkptr=0 // +build linux,amd64 linux,ppc64le darwin,amd64 freebsd,amd64 netbsd,amd64 windows,amd64 +// +build cgo // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style