block: don't put spaces around :
[ironout.git] / tests / test-declare
blob8ef4c8dc69b7ff8cda2ee545158a0940be43de23
1 : # test extern variable
2 ------------------------
3 : write test1.c
4 extern int var;
5 void g()
7         var = 2;
9 : write test2.c
10 int var = 1;
11 : ironout find test1.c 11
12 test1.c 11 14
13 test1.c 28 31
14 test2.c 4 7
15 : # test extern keyword when defining
16 -------------------------------------
17 : write test1.c
18 extern int var;
19 void g()
21         var = 2;
23 : write test2.c
24 extern int var = 1;
25 : ironout find test1.c 11
26 test1.c 11 14
27 test1.c 28 31
28 test2.c 11 14
29 : # function declarations
30 -------------------------
31 : write test1.c
32 void f();
33 void g()
35         f();
37 : write test2.c
38 void f()
41 : ironout find test1.c 5
42 test1.c 5 6
43 test1.c 22 23
44 test2.c 5 6