Mercurial > hg > CbC > CbC_gcc
view libgo/misc/cgo/nocgo/nocgo_test.go @ 150:26042f4007d5 current
fix examples
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 23 May 2020 07:51:47 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Copyright 2014 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. package nocgo import "testing" func TestNop(t *testing.T) { i := NoCgo() if i != 42 { t.Errorf("got %d, want %d", i, 42) } }