fix Issue 7848 - pure and nothrow ignored on unittest blocks
Merge pull request #2142 from 9rnsr/fix7848

Issue 7848 - pure and nothrow ignored on unittest blocks