Testcase impl const

Test case for:
https://sourceforge.net/p/sveditor/bugs/258/