github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/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 }