...

Source file src/cmd/nm/nm_cgo_test.go

Documentation: cmd/nm

     1  // Copyright 2017 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 main
     6  
     7  import (
     8  	"internal/testenv"
     9  	"testing"
    10  )
    11  
    12  func TestInternalLinkerCgoExec(t *testing.T) {
    13  	testenv.MustHaveCGO(t)
    14  	testenv.MustInternalLink(t, true)
    15  	testGoExec(t, true, false)
    16  }
    17  
    18  func TestExternalLinkerCgoExec(t *testing.T) {
    19  	testenv.MustHaveCGO(t)
    20  	testGoExec(t, true, true)
    21  }
    22  
    23  func TestCgoLib(t *testing.T) {
    24  	testenv.MustHaveCGO(t)
    25  	testGoLib(t, true)
    26  }
    27  

View as plain text