blob: 45d247cf9545a644e54b09735779a33c62397850 [file] [log] [blame]
Ian Lance Taylorf8560082014-05-20 21:36:50 -07001// 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
5package nocgo
6
7import "testing"
8
9func TestNop(t *testing.T) {
10 i := NoCgo()
11 if i != 42 {
12 t.Errorf("got %d, want %d", i, 42)
13 }
14}