aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test/test/safe/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/go.test/test/safe/main.go')
-rw-r--r--gcc/testsuite/go.test/test/safe/main.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/go.test/test/safe/main.go b/gcc/testsuite/go.test/test/safe/main.go
new file mode 100644
index 000000000..d173ed926
--- /dev/null
+++ b/gcc/testsuite/go.test/test/safe/main.go
@@ -0,0 +1,14 @@
+// true
+
+// Copyright 2012 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.
+
+package main
+
+// can't use local path with -u, use -I. instead
+import "pkg" // ERROR "import unsafe package"
+
+func main() {
+ print(pkg.Float32bits(1.0))
+}