Source file
src/cmd/nm/nm_cgo_test.go
1
2
3
4
5 package main
6
7 import (
8 "internal/testenv"
9 "testing"
10 )
11
12 func TestInternalLinkerCgoExec(t *testing.T) {
13 testenv.MustHaveCGO(t)
14
15
16 testenv.MustInternalLink(t, testenv.SpecialBuildTypes{Cgo: true})
17 testGoExec(t, true, false)
18 }
19
20 func TestExternalLinkerCgoExec(t *testing.T) {
21 testenv.MustHaveCGO(t)
22 testGoExec(t, true, true)
23 }
24
25 func TestCgoLib(t *testing.T) {
26 testenv.MustHaveCGO(t)
27 testGoLib(t, true)
28 }
29
View as plain text