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