github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/cgo_asm_error.txt (about)

     1  [!cgo] skip
     2  
     3  # Test that cgo package can't contain a go assembly file.
     4  
     5  # Ensure the build fails and reports that the package has a Go assembly file.
     6  ! go build cgoasm
     7  stderr 'package using cgo has Go assembly file'
     8  
     9  -- cgoasm/p.go --
    10  package p
    11  
    12  /*
    13  // hi
    14  */
    15  import "C"
    16  
    17  func F() {}
    18  -- cgoasm/p.s --
    19  TEXT asm(SB),$0
    20  	RET
    21