[go: up one dir, main page]

File: d3

package info (click to toggle)
cppi 1.18-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,936 kB
  • sloc: ansic: 12,443; sh: 7,551; lex: 850; perl: 173; makefile: 47; sed: 16
file content (41 lines) | stat: -rwxr-xr-x 588 bytes parent folder | download
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