add test case for Issue 12221

https://d.puremagic.com/issues/show_bug.cgi?id=12221

Requires this PR: https://github.com/D-Programming-Language/druntime/pull/727