annotate src/testdir/test10a.in @ 6759:b019669eee53 v7.4.701

patch 7.4.701 Problem: Compiler warning for using uninitialized variable. (Yasuhiro Matsumoto) Solution: Initialize it.
author Bram Moolenaar <bram@vim.org>
date Wed, 15 Apr 2015 14:27:49 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Test for 'errorformat'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :/start of errorfile/,/end of errorfile/w! Xerrorfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :/start of testfile/,/end of testfile/w! Xtestfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :cf Xerrorfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 rA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :cn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 rB
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :cn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 rC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :cn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 rD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :cn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 rE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :w! test.out " Write contents of this file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 start of errorfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 printf(" %d \n", (number/other)%10 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 ..................^
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 %CC-E-NOSEMI, Missing ";".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 at line number 4 in file SYS$DISK:XTESTFILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 other=10000000;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 .............^
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 %CC-E-UNDECLARED, In this statement, "oszt" is not declared.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 at line number 7 in file SYS$DISK:XTESTFILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 for (i = 0; i<7 ; i++ ){
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 ..................^
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 %CC-E-UNDECLARED, In this statement, "i" is not declared.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 at line number 16 in file SYS$DISK:XTESTFILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 some other error somewhere here.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 ...........................^
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 %CC-W-WARRING, Sorry, but no expalnation for such an warring.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 at line number 19 in file SYS$DISK:XTESTFILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 and finally some other error exactly here.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 .....................................^
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 %CC-I-INFORMATIONAL, It should be some informational message.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 at line number 20 in file SYS$DISK:XTESTFILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 Does anyone know what is the problem and how to correct ?? :)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 end of errorfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 start of testfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 01234567890123456789012345678901234567
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 line 4 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 line 6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 line 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 line 8 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 line 10 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 line 11 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 line 12 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 line 13 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 line 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 line 15 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 line 16 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 line 17 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 line 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 line 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 end of testfile