| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | t=`basenamescip-shell system . . basename. $0` |
| 4 | |
| 5 | catscip-shell system . . cat. > $t.Iin <<\EOF |
| 6 | #if(FOO) |
| 7 | #endif |
| 8 | |
| 9 | " /* make sure comment in quote is ignored " |
| 10 | #if 1 |
| 11 | */ |
| 12 | #else |
| 13 | /* This file has no newline at end. */ |
| 14 | #endif |
| 15 | EOF |
| 16 | |
| 17 | # Remove newline from end of $t.Iin |
| 18 | trscip-shell system . . tr. '\012' @ < $t.Iin |sedscip-shell system . . sed. 's/@$//' |trscip-shell system . . tr. @ '\012' > $t.I |
| 19 | rmscip-shell system . . rm. -f $t.Iin |
| 20 | |
| 21 | catscip-shell system . . cat. > $t.EOin <<\EOF |
| 22 | #if (FOO) |
| 23 | #endif |
| 24 | |
| 25 | " /* make sure comment in quote is ignored " |
| 26 | #if 1 |
| 27 | */ |
| 28 | #else |
| 29 | /* This file has no newline at end. */ |
| 30 | #endif |
| 31 | EOF |
| 32 | trscip-shell system . . tr. '\012' @ < $t.EOin |sedscip-shell system . . sed. 's/@$//' |trscip-shell system . . tr. @ '\012' > $t.EO |
| 33 | rmscip-shell system . . rm. -f $t.EOin |
| 34 | |
| 35 | catscip-shell system . . cat. > $t.Ee <<\EOF |
| 36 | EOF |
| 37 | |
| 38 | options= |
| 39 | expected_status=0 |
| 40 | |
| 41 | . $top_srcdir/tests/test-common |