blob: 7aaa713e24412c1966b003e3f774888cd9df7dcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
[!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'
-- go.mod --
module cgoasm
go 1.16
-- p.go --
package p
/*
// hi
*/
import "C"
func F() {}
-- p.s --
TEXT asm(SB),$0
RET
|