galghumor

Etymology
From, , used since 1884.

Noun

 * 1) gallows humor