Debian Codegraph @

gcc/testsuite/cobol.dg/group2/Refmod__comparisons_inside_numeric-display.cob

raw
1 *> { dg-do run }
2 *> { dg-output-file "group2/Refmod__comparisons_inside_numeric-display.out" }
3 identification division.
4 program-id. prog.
5 data division.
6 working-storage section.
7 01 n pic 9(9).
8 01 i pic 99.
9 procedure division.
10 perform varying i from 1 by 1 until i > 8
11 move 88888888 to n
12 move "12" to n(i:2)
13 display n
14 if n(i:2) not equal to "12"
15 display "Equality is flawed"
16 end-if
17 end-perform.
18 goback.
19 end program prog.
20