Term: deathfic
Example: in the deathfic the main character ended up dying
Definition: a term used in fan fictions when a character (usually a main character) dies