aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/importtest.go
blob: 9cb30e8a7cc923b1b506536453a8ccd44e7d4b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// compile -G

// Copyright 2020 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.

// This file checks that basic importing works in -G mode.

package p

import "fmt"
import "math"

func f(x float64) {
	fmt.Println(math.Sin(x))
}