xref: /freebsd/bin/sh/tests/builtins/trap9.0 (revision 2a58b312b62f908ec92311d1bd8536dbaeb8e55b)
1# $FreeBSD$
2
3test "$(trap 'printf trap; echo ped' EXIT; f() { :; }; f)" = trapped || exit 1
4