equal
deleted
inserted
replaced
|
1 (* Test whether the keyword XXXX may be used as an identifier for: |
|
2 * derived data type identifier |
|
3 * |
|
4 * The XXXX names in the following code are merely a placeholder. |
|
5 * They will be replaced by several identifiers before actual testing |
|
6 * of the compiler. |
|
7 *) |
|
8 |
|
9 (* The identifiers that will replace the XXXX |
|
10 * must be placed on a line starting with # |
|
11 * All identifiers preceded by # are ignored! |
|
12 * The identifier list must be placed inside an IEC 61131-3 comment. |
|
13 *) |
|
14 (* |
|
15 #IL_operators ANDN CAL CALC CALCN CD CLK CU IN JMP JMPC JMPCN LD LDN ORN PT PV R R1 RET RETC RETCN S S1 ST STN XORN |
|
16 #SFC_qualifiers D DS L N P #R #S SD SL |
|
17 NOTE: R and S are identical to IL operators!! |
|
18 #Task_initialisers PRIORITY SINGLE INTERVAL |
|
19 *) |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 TYPE |
|
25 XXXX : real := 50; |
|
26 END_TYPE |
|
27 |
|
28 |
|
29 |
|
30 function foo : int |
|
31 var_input |
|
32 a_1, b_1: XXXX; |
|
33 end_var |
|
34 var |
|
35 c_1, d_1: int; |
|
36 end_var |
|
37 c_1 := 0; |
|
38 end_function |
|
39 |
|
40 |
|
41 |
|
42 (* Checking whether the use of XXXX will confuse any other |
|
43 * normal and correct IL or ST code. |
|
44 *) |
|
45 {#include "basic_code.test" } |
|
46 |