//go:build android || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build android darwin dragonfly freebsd linux netbsd openbsd solaris package main import ( "os" "os/signal" "syscall" ) func fn2() { c := make(chan os.Signal, 1) signal.Ignore() //@ diag(`cannot be trapped`) signal.Notify(c) //@ diag(`cannot be trapped`) signal.Reset() //@ diag(`cannot be trapped`) }