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