General guidance for problematic content
We did actually just recently have an issue with a user who made several posts which linked directly to a nude image (hosted on the i.stack.imgur domain).This type of thing can and does happen from time to time. These were appropriately red-flag and subsequently removed for that reason. In general, if there are issues in the post itself (including direct links away) then a red-flag is likely appropriate. So there are definitely situations where R/A flags can be used for non-promotional problematic content.
Probably also worth noting that most mods (in my experience) are not too bothered which red-flag is used if the content is problematic and need of removal. Additionally most (again in my experience) will investigate at least to some extent what you meant by the red-flag.
There's always the option to cast an "in need of moderator intervention" flag to further explain the situation (as has been mentioned already) if there really needs to be more context as to why this (perhaps seemingly innocuous) content needs to be removed. I also find it helpful to cast a mod-flag when I'm unsure, because the incident is now noted on the account and can be reviewed later if it becomes a further issue.
Programmers can and do work with this type of content
Having said all this, however, programmers can and do work with profanity, abusive content, pornographic content, and otherwise explicit content. Programmers do implement solutions for the "protection" of others and to derive protections "threat" analysis is often necessary. This idea is not dissimilar to Should questions about programming viruses and malware be allowed?
A counterexample that comes to mind in this particular case would be a pattern-based ad blocker or traffic filter. Trying to detect (with regex) ad patterns that should not be displayed for their content is both a programming problem and probably not something that would be easily modifiable to someone unfamiliar with regex (changing the test string without affecting the ability for a pattern to be developed can be error prone).
Would a disclaimer or context be helpful?
Sure. People should know what they're looking at, especially in contexts where proceeding further could get them in trouble.
Would a test string that did not contain links to adult content be preferable to many people?
Probably. A small representative sample is helpful in most questions and one that doesn't expose others to unnecessary content is preferable to most people: even when the content is just unneeded and not potentially abusive.