github.com/corona10/go@v0.0.0-20180224231303-7a218942be57/misc/cgo/test/issue20910.go (about)

     1  // Copyright 2017 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 cgotest
     6  
     7  //void callMulti(void);
     8  import "C"
     9  
    10  import "testing"
    11  
    12  //export multi
    13  func multi() (*C.char, C.int) {
    14  	return C.CString("multi"), 0
    15  }
    16  
    17  func test20910(t *testing.T) {
    18  	C.callMulti()
    19  }