1" Tests for parsing the modeline.
2
3func Test_modeline_invalid()
4  " This was reading before allocated memory.
5  call writefile(['vi:0', 'nothing'], 'Xmodeline')
6  call assert_fails('split Xmodeline', 'E518:')
7  bwipe!
8  call delete('Xmodeline')
9endfunc
10