mirror of
https://github.com/golang/go
synced 2024-11-06 13:36:12 -07:00
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")
|
||
|
}
|
||
|
}
|