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