summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-01-07 11:02:02 -0800
committerIan Lance Taylor <iant@golang.org>2021-01-07 11:02:17 -0800
commitb87ec922c4090fcacf802c73b6bfd59a8632f8a5 (patch)
tree7b275ad9c804bfd3eaeab483140b17d99de90cb2 /gcc/testsuite/go.test
parentc8d2ed112e725cd698c14dca8155c86c5b7b0756 (diff)
test: add new Go tests from source repo
Diffstat (limited to 'gcc/testsuite/go.test')
-rw-r--r--gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Äfoo.go13
-rw-r--r--gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Ämain.go13
-rw-r--r--gcc/testsuite/go.test/test/fixedbugs/issue27836.go7
3 files changed, 33 insertions, 0 deletions
diff --git a/gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Äfoo.go b/gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Äfoo.go
new file mode 100644
index 00000000000..8b6a814c3c4
--- /dev/null
+++ b/gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Äfoo.go
@@ -0,0 +1,13 @@
+package Äfoo
+
+var ÄbarV int = 101
+
+func Äbar(x int) int {
+ defer func() { ÄbarV += 3 }()
+ return Äblix(x)
+}
+
+func Äblix(x int) int {
+ defer func() { ÄbarV += 9 }()
+ return ÄbarV + x
+}
diff --git a/gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Ämain.go b/gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Ämain.go
new file mode 100644
index 00000000000..25d2c71fc00
--- /dev/null
+++ b/gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Ämain.go
@@ -0,0 +1,13 @@
+package main
+
+import (
+ "fmt"
+
+ "./Äfoo"
+ Äblix "./Äfoo"
+)
+
+func main() {
+ fmt.Printf("Äfoo.Äbar(33) returns %v\n", Äfoo.Äbar(33))
+ fmt.Printf("Äblix.Äbar(33) returns %v\n", Äblix.Äbar(33))
+}
diff --git a/gcc/testsuite/go.test/test/fixedbugs/issue27836.go b/gcc/testsuite/go.test/test/fixedbugs/issue27836.go
new file mode 100644
index 00000000000..128cf9d06ad
--- /dev/null
+++ b/gcc/testsuite/go.test/test/fixedbugs/issue27836.go
@@ -0,0 +1,7 @@
+// compiledir
+
+// 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.
+
+package ignored