blob: e6561069405a085ce73a5db12f5f21f63590573e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
[!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
|