mirror of
https://github.com/golang/go
synced 2024-11-23 12:40:11 -07:00
17 lines
384 B
Go
17 lines
384 B
Go
|
// errorcheck -u -+
|
||
|
|
||
|
// Copyright 2018 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.
|
||
|
|
||
|
// Check that we cannot import a package that uses "unsafe" internally
|
||
|
// when -u is supplied.
|
||
|
|
||
|
package main
|
||
|
|
||
|
import "syscall" // ERROR "import unsafe package"
|
||
|
|
||
|
func main() {
|
||
|
print(syscall.Environ())
|
||
|
}
|