mirror of
https://github.com/github/codeql.git
synced 2026-08-03 17:03:02 +02:00
17 lines
171 B
Go
17 lines
171 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func callRecover1() {
|
|
if recover() != nil {
|
|
fmt.Printf("recovered")
|
|
}
|
|
}
|
|
|
|
func fun1() {
|
|
defer func() {
|
|
callRecover1()
|
|
}()
|
|
panic("1")
|
|
}
|