mirror of
https://github.com/golang/go
synced 2024-11-15 00:00:34 -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")
|
||
|
}
|
||
|
}
|