Source file 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  }
    15  

View as plain text