mirror of
https://github.com/golang/go
synced 2024-09-06 00:19:45 +00:00
![Robert Griesemer](/assets/img/avatar_default.png)
Change-Id: I9044de7829d22addb5bc570401508082e3f007eb Reviewed-on: https://go-review.googlesource.com/c/go/+/269057 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
17 lines
322 B
Go
17 lines
322 B
Go
// 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))
|
|
}
|