dmd: add a conf and test

Closes #20687.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>