10 if test "$a" = "1"; then
12 elif test "$a" = " "; then
14 elif test "$b" = "1"; then
16 elif test "$b" = " "; then
18 elif test "$c" = "1"; then
20 elif test "$c" = " "; then
22 elif test "$d" = "1"; then
24 elif test "$d" = " "; then
32 done) >expout 3>do-if.txt || exit 99
33 AT_DATA([do-if.sps], [dnl
34 DATA LIST FILE="do-if.txt"/A B C D 1-4 ABCD 1-4 (A).
36 PRINT OUTFILE="do-if.out"/ABCD 'A'.
38 PRINT OUTFILE="do-if.out"/ABCD 'B'.
40 PRINT OUTFILE="do-if.out"/ABCD 'C'.
42 PRINT OUTFILE="do-if.out"/ABCD 'D'.
44 PRINT OUTFILE="do-if.out"/ABCD 'E'.
48 AT_CHECK([pspp do-if.sps], [0], [ignore])
49 AT_CHECK([cat do-if.out], [0], [expout])
52 AT_SETUP([unpaired END IF crash])
53 AT_DATA([do-if.sps], [dnl
54 DATA LIST LIST NOTABLE/a b c.
57 AT_CHECK([pspp -O format=csv do-if.sps], [0], [dnl
58 do-if.pspp:2: error: END IF: This command cannot appear outside DO IF...END IF.