Closes #585
test for #warning directive added
Merge pull request #586 from Stitchous/issue_585_fix

Closes #585