blob: e6561069405a085ce73a5db12f5f21f63590573e [file] [log] [blame]
[!cgo] skip
# Test that cgo package can't contain a go assembly file.
# Ensure the build fails and reports that the package has a Go assembly file.
! go build cgoasm
stderr 'package using cgo has Go assembly file'
-- cgoasm/p.go --
package p
/*
// hi
*/
import "C"
func F() {}
-- cgoasm/p.s --
TEXT asm(SB),$0
RET