github.com/bir3/gocompiler@v0.9.2202/src/cmd/cgo/internal/test/gcc68255.go (about)

     1  // Copyright 2015 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  //go:build cgo
     6  
     7  package cgotest
     8  
     9  import (
    10  	"testing"
    11  
    12  	"github.com/bir3/gocompiler/src/cmd/cgo/internal/test/gcc68255"
    13  )
    14  
    15  func testGCC68255(t *testing.T) {
    16  	if !gcc68255.F() {
    17  		t.Error("C global variable was not initialized")
    18  	}
    19  }