Debian Codegraph @

gcc/testsuite/cobol.dg/group2/Quick_check_of_PIC_XX_COMP-5.cob

raw
1 *> { dg-do run }
2 *> { dg-options "-dialect mf" }
3 *> { dg-output-file "group2/Quick_check_of_PIC_XX_COMP-5.out" }
4 identification division.
5 program-id. wrapper.
6 data division.
7 working-storage section.
8 01 memx pic x(2) comp-5.
9 77 ptr pointer.
10 procedure division.
11 Initialize ptr.display "LENGTH OF X(2) is " length of memx
12 move 12345 to memx
13 display memx
14 IF ptr <> NULL then display 'bad pointer'.
15 goback.
16 end program wrapper.
17