mirror of
https://github.com/golang/go
synced 2024-11-26 15:36:59 -07:00
test: add test that failed with gccgo
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>
This commit is contained in:
parent
f45eb9ff3c
commit
4757518737
11
test/fixedbugs/issue33739.dir/a.go
Normal file
11
test/fixedbugs/issue33739.dir/a.go
Normal file
@ -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() {}
|
11
test/fixedbugs/issue33739.dir/b.go
Normal file
11
test/fixedbugs/issue33739.dir/b.go
Normal file
@ -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()()
|
||||
}
|
9
test/fixedbugs/issue33739.go
Normal file
9
test/fixedbugs/issue33739.go
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user