mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
This moves the remaining cgo tests. For #37486. Change-Id: I99dea5a312a1974de338461a8b02242e5c1bae62 Reviewed-on: https://go-review.googlesource.com/c/go/+/492721 Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Bryan Mills <bcmills@google.com>
20 lines
361 B
Go
20 lines
361 B
Go
// Copyright 2015 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build cgo
|
|
|
|
package cgotest
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"cmd/cgo/internal/test/gcc68255"
|
|
)
|
|
|
|
func testGCC68255(t *testing.T) {
|
|
if !gcc68255.F() {
|
|
t.Error("C global variable was not initialized")
|
|
}
|
|
}
|