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