|
| 1 | +AT_SETUP([-fvar-name-hex]) |
| 2 | + |
| 3 | +AT_DATA([prog.cbl], [ IDENTIFICATION DIVISION. |
| 4 | + PROGRAM-ID. prog. |
| 5 | + |
| 6 | + DATA DIVISION. |
| 7 | + WORKING-STORAGE SECTION. |
| 8 | + 01 �V�h PIC x(5) VALUE "00000". |
| 9 | + 01 ���l�|�P PIC x(5) VALUE "11111". |
| 10 | + 01 �b�{�|2 PIC x(5) VALUE "22222". |
| 11 | + 01 �F�s�{�P PIC x(5) VALUE "33333". |
| 12 | + 01 ���2 PIC x(5) VALUE "44444". |
| 13 | + PROCEDURE DIVISION. |
| 14 | + �������x��. |
| 15 | + DISPLAY �V�h. |
| 16 | + �_�ސ�|�P���x��. |
| 17 | + DISPLAY ���l�|�P. |
| 18 | + �R���|2���x��. |
| 19 | + DISPLAY �b�{�|2. |
| 20 | + �ȖP���x��. |
| 21 | + DISPLAY �F�s�{�P. |
| 22 | + �{��2���x��. |
| 23 | + DISPLAY ���2. |
| 24 | +]) |
| 25 | + |
| 26 | + |
| 27 | +AT_CHECK([${COMPILE} prog.cbl]) |
| 28 | +AT_CHECK([${RUN_MODULE} prog], [0], |
| 29 | +[00000 |
| 30 | +11111 |
| 31 | +22222 |
| 32 | +33333 |
| 33 | +44444 |
| 34 | +]) |
| 35 | +AT_CHECK([cat prog.java | grep "�V�h" > /dev/null]) |
| 36 | +AT_CHECK([cat prog.java | grep "���l�|�P" > /dev/null]) |
| 37 | +AT_CHECK([cat prog.java | grep "�b�{�|2" > /dev/null]) |
| 38 | +AT_CHECK([cat prog.java | grep "�F�s�{�P" > /dev/null]) |
| 39 | +AT_CHECK([cat prog.java | grep "���2" > /dev/null]) |
| 40 | + |
| 41 | +AT_CHECK([cat prog.java | grep "�������x��" > /dev/null]) |
| 42 | +AT_CHECK([cat prog.java | grep "�_�ސ�|�P���x��" > /dev/null]) |
| 43 | +AT_CHECK([cat prog.java | grep "�R���|2���x��" > /dev/null]) |
| 44 | +AT_CHECK([cat prog.java | grep "�ȖP���x��" > /dev/null]) |
| 45 | +AT_CHECK([cat prog.java | grep "�{��2���x��" > /dev/null]) |
| 46 | + |
| 47 | +AT_CHECK([${COMPILE} -fvar-name-hex prog.cbl]) |
| 48 | +AT_CHECK([${RUN_MODULE} prog], [0], |
| 49 | +[00000 |
| 50 | +11111 |
| 51 | +22222 |
| 52 | +33333 |
| 53 | +44444 |
| 54 | +]) |
| 55 | + |
| 56 | +AT_CHECK([cat prog.java | grep "90568f68" > /dev/null]) |
| 57 | +AT_CHECK([cat prog.java | grep "89a1956c817c8250" > /dev/null]) |
| 58 | +AT_CHECK([cat prog.java | grep "8d62957b817c32" > /dev/null]) |
| 59 | +AT_CHECK([cat prog.java | grep "894693738b7b8250" > /dev/null]) |
| 60 | +AT_CHECK([cat prog.java | grep "90e591e432" > /dev/null]) |
| 61 | + |
| 62 | +AT_CHECK([cat prog.java | grep "938c8b9e83898378838b" > /dev/null]) |
| 63 | +AT_CHECK([cat prog.java | grep "905f93de90ec817c825083898378838b" > /dev/null]) |
| 64 | +AT_CHECK([cat prog.java | grep "8e52979c817c3283898378838b" > /dev/null]) |
| 65 | +AT_CHECK([cat prog.java | grep "93c896d8825083898378838b" > /dev/null]) |
| 66 | +AT_CHECK([cat prog.java | grep "8b7b8fe93283898378838b" > /dev/null]) |
| 67 | + |
| 68 | +AT_CLEANUP |
0 commit comments