| 1 | #!/bin/sh |
| 2 | |
| 3 | t=`basename $0` |
| 4 | |
| 5 | cat > $t.I <<\EOF |
| 6 | #if 1 |
| 7 | # if 0 |
| 8 | # define x y |
| 9 | # endif (ansi violation) |
| 10 | #endif |
| 11 | EOF |
| 12 | |
| 13 | cat > $t.EO <<\EOF |
| 14 | EOF |
| 15 | |
| 16 | cat > $t.Ee <<\EOF |
| 17 | cppi: standard input: line 4: text following `#endif' violates ANSI standard |
| 18 | EOF |
| 19 | |
| 20 | options='-c --ansi' |
| 21 | expected_status=1 |
| 22 | |
| 23 | . $top_srcdir/tests/test-common |