mirror of
https://github.com/golang/go
synced 2024-11-23 15:50:07 -07:00
13c829e5f6
With this change, the code in bug #15609 compiles and runs properly: 0000000000401070 <main.jump>: 401070: ff 15 aa 7e 06 00 callq *0x67eaa(%rip) # 468f20 <main.pointer> 401076: c3 retq 0000000000468f20 g O .rodata 0000000000000008 main.pointer Fixes #15609 Change-Id: Iebb4d5a9f9fff335b693f4efcc97882fe04eefd7 Reviewed-on: https://go-review.googlesource.com/22950 Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
15 lines
135 B
Go
15 lines
135 B
Go
package main
|
|
|
|
var called bool
|
|
|
|
func target() {
|
|
called = true
|
|
}
|
|
|
|
func main() {
|
|
jump()
|
|
if !called {
|
|
panic("target not called")
|
|
}
|
|
}
|