]> Cypherpunks repositories - gostls13.git/commitdiff
test: add test that failed with gccgo
authorIan Lance Taylor <iant@golang.org>
Wed, 21 Aug 2019 00:11:43 +0000 (17:11 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 28 Aug 2019 18:35:32 +0000 (18:35 +0000)
Updates #33739

Change-Id: Ib7ce4bc51972fe49998f37f6e27baa6a2a036d5e
Reviewed-on: https://go-review.googlesource.com/c/go/+/191001
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

test/fixedbugs/issue33739.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue33739.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue33739.go [new file with mode: 0644]

diff --git a/test/fixedbugs/issue33739.dir/a.go b/test/fixedbugs/issue33739.dir/a.go
new file mode 100644 (file)
index 0000000..7eb5b92
--- /dev/null
@@ -0,0 +1,11 @@
+// Copyright 2019 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 a
+
+func F() func() {
+       return f
+}
+
+func f() {}
diff --git a/test/fixedbugs/issue33739.dir/b.go b/test/fixedbugs/issue33739.dir/b.go
new file mode 100644 (file)
index 0000000..caca1ec
--- /dev/null
@@ -0,0 +1,11 @@
+// Copyright 2019 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
+
+import "a"
+
+func main() {
+       a.F()()
+}
diff --git a/test/fixedbugs/issue33739.go b/test/fixedbugs/issue33739.go
new file mode 100644 (file)
index 0000000..b770782
--- /dev/null
@@ -0,0 +1,9 @@
+// rundir
+
+// Copyright 2019 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.
+
+// Issue 33739: gccgo undefined symbol with cross-package inlining
+
+package ignored