github.com/mdempsky/go@v0.0.0-20151201204031-5dd372bd1e70/misc/cgo/nocgo/nocgo_test.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 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  }