| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | t=`basenamescip-shell system . . basename. $0` |
| 4 | |
| 5 | catscip-shell system . . cat. > $t.I <<\EOF |
| 6 | /*comments with asterisk before newline used to mess up line counting* |
| 7 | */ |
| 8 | # if(FOO) |
| 9 | #endif |
| 10 | EOF |
| 11 | |
| 12 | catscip-shell system . . cat. > $t.EO <<\EOF |
| 13 | EOF |
| 14 | |
| 15 | catscip-shell system . . cat. > $t.Ee <<\EOF |
| 16 | cppi: standard input: line 3: not properly indented |
| 17 | cppi: standard input: line 3: not properly formatted; |
| 18 | there must be exactly one SPACE character after each |
| 19 | #if, #elif, and #define directive |
| 20 | EOF |
| 21 | |
| 22 | options=-c |
| 23 | expected_status=1 |
| 24 | |
| 25 | . $top_srcdir/tests/test-common |