]> Cypherpunks.ru repositories - gostls13.git/blob - src/cmd/cgo/internal/testnocgo/nocgo_test.go
misc/cgo/test: add cgo build constraints
[gostls13.git] / src / cmd / cgo / internal / testnocgo / nocgo_test.go
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 nocgo
6
7 import "testing"
8
9 func TestNop(t *testing.T) {
10         i := NoCgo()
11         if i != 42 {
12                 t.Errorf("got %d, want %d", i, 42)
13         }
14 }