/src/testdir/test10a.in

https://bitbucket.org/ultra_iter/vim-qt · Autoconf · 73 lines · 64 code · 9 blank · 0 comment · 3 complexity · 30af90b04d02276688d2874dc4b939ec MD5 · raw file

  1. Test for 'errorformat'.
  2. STARTTEST
  3. :so small.vim
  4. :/start of errorfile/,/end of errorfile/w! Xerrorfile
  5. :/start of testfile/,/end of testfile/w! Xtestfile
  6. :cf Xerrorfile
  7. rA
  8. :cn
  9. rB
  10. :cn
  11. rC
  12. :cn
  13. rD
  14. :cn
  15. rE
  16. :w! test.out " Write contents of this file
  17. :qa!
  18. ENDTEST
  19. start of errorfile
  20. printf(" %d \n", (number/other)%10 );
  21. ..................^
  22. %CC-E-NOSEMI, Missing ";".
  23. at line number 4 in file SYS$DISK:XTESTFILE
  24. other=10000000;
  25. .............^
  26. %CC-E-UNDECLARED, In this statement, "oszt" is not declared.
  27. at line number 7 in file SYS$DISK:XTESTFILE
  28. for (i = 0; i<7 ; i++ ){
  29. ..................^
  30. %CC-E-UNDECLARED, In this statement, "i" is not declared.
  31. at line number 16 in file SYS$DISK:XTESTFILE
  32. some other error somewhere here.
  33. ...........................^
  34. %CC-W-WARRING, Sorry, but no expalnation for such an warring.
  35. at line number 19 in file SYS$DISK:XTESTFILE
  36. and finally some other error exactly here.
  37. .....................................^
  38. %CC-I-INFORMATIONAL, It should be some informational message.
  39. at line number 20 in file SYS$DISK:XTESTFILE
  40. Does anyone know what is the problem and how to correct ?? :)
  41. end of errorfile
  42. start of testfile
  43. 01234567890123456789012345678901234567
  44. line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  45. line 4 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  46. line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  47. line 6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  48. line 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  49. line 8 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  50. line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  51. line 10 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  52. line 11 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  53. line 12 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  54. line 13 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  55. line 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  56. line 15 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  57. line 16 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  58. line 17 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  59. line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  60. line 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  61. line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  62. line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  63. line 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  64. end of testfile