| 1 | #!/bin/sh |
| 2 | |
| 3 | t=`basename $0` |
| 4 | |
| 5 | cat > $t.I <<\EOF |
| 6 | #if FOO |
| 7 | # define foo(if) \\ |
| 8 | #if x |
| 9 | #endif |
| 10 | EOF |
| 11 | |
| 12 | > $t.EO |
| 13 | |
| 14 | cat > $t.Ee <<\EOF |
| 15 | cppi: stringify-2.I: line 3: not properly indented |
| 16 | cppi: stringify-2.I: line 4: not properly indented |
| 17 | cppi: stringify-2.I: line 1: unterminated #if |
| 18 | EOF |
| 19 | |
| 20 | redirect_stdin=no |
| 21 | options="-c" |
| 22 | expected_status=2 |
| 23 | |
| 24 | . $top_srcdir/tests/test-common |