Diff of /test/func-decl.test.expected [fc78f7] .. [daf770]  Maximize  Restore

Switch to unified view

a/test/func-decl.test.expected b/test/func-decl.test.expected
1
FUNCTION func_decl_void:DINT;
1
FUNCTION func_decl_void:DINT;
2
func_decl_void: DINT;
2
3
VAR
4
5
END_VAR
6
7
END_FUNCTION
8
3
FUNCTION func_decl_empty:DINT;
9
FUNCTION func_decl_empty:DINT;
4
10
5
END_FUNCTION
11
END_FUNCTION
6
12
7
FUNCTION func_def_clear:DINT;
13
FUNCTION func_def_clear:DINT;
...
...
13
a: DINT;
19
a: DINT;
14
 func_def_params := (a);
20
 func_def_params := (a);
15
 RETURN;
21
 RETURN;
16
22
17
END_FUNCTION
23
END_FUNCTION
18
FUNCTION func_def_all_voidparams:DINT;
24
FUNCTION func_def_all_voidparams:DINT;
25
26
VAR
19
a: DINT;
27
a: DINT;
20
b: DINT;
28
29
END_VAR
30
31
VAR
32
b: DINT;
33
34
END_VAR
21
   func_def_all_voidparams := (a);
35
   func_def_all_voidparams := (a);
22
 RETURN;
36
 RETURN;
23
37
24
END_FUNCTION
38
END_FUNCTION
25
FUNCTION func_def_all_noparams:DINT;
39
FUNCTION func_def_all_noparams:DINT;
40
41
VAR
26
a: DINT;
42
a: DINT;
27
b: DINT;
43
44
END_VAR
45
46
VAR
47
b: DINT;
48
49
END_VAR
28
   func_def_all_noparams := (a);
50
   func_def_all_noparams := (a);
29
 RETURN;
51
 RETURN;
30
52
31
END_FUNCTION
53
END_FUNCTION
32
FUNCTION func_def_full:DINT;
54
FUNCTION func_def_full:DINT;
55
56
VAR_IN_OUT
33
a: DINT;
57
a: DINT;
34
b: DINT;
58
b: DINT;
35
c: DINT;
59
36
d: DINT;
60
END_VAR
61
62
VAR
63
c: DINT;
64
65
END_VAR
66
67
VAR
68
d: DINT;
69
70
END_VAR
37
 b := 2;
71
 b := 2;
38
 
72
 
39
IF a
73
IF a
40
 b := d;
74
 b := d;
41
75
42
END_IF
76
END_IF
43
  func_def_full := (a);
77
  func_def_full := (a);
44
 RETURN;
78
 RETURN;
45
79
46
END_FUNCTION
80
END_FUNCTION
47
FUNCTION func_def_pointer:DINT;
81
FUNCTION func_def_pointer:DINT;
82
83
VAR
48
a: DINT;
84
a: DINT;
49
85
86
END_VAR
87
50
END_FUNCTION
88
END_FUNCTION