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