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