github.com/roboticscm/goman@v0.0.0-20210203095141-87c07b4a0a55/misc/cgo/testcdefs/main.go (about)

     1  // Copyright 2013 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  import "os"
     8  
     9  func test() int32 // in main.c
    10  
    11  func main() {
    12  	os.Exit(int(test()))
    13  }