github.com/huandu/go@v0.0.0-20151114150818-04e615e41150/misc/cgo/test/issue8811.go (about) 1 // Copyright 2014 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 /* 8 extern int issue8811Initialized; 9 extern void issue8811Init(); 10 11 void issue8811Execute() { 12 if(!issue8811Initialized) 13 issue8811Init(); 14 } 15 */ 16 import "C" 17 18 import "testing" 19 20 func test8811(t *testing.T) { 21 C.issue8811Execute() 22 }