summaryrefslogtreecommitdiffstats
path: root/test/typeparam/importtest.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeparam/importtest.go')
-rw-r--r--test/typeparam/importtest.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/typeparam/importtest.go b/test/typeparam/importtest.go
new file mode 100644
index 0000000..a49dcd9
--- /dev/null
+++ b/test/typeparam/importtest.go
@@ -0,0 +1,16 @@
+// compile
+
+// 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))
+}