[go: up one dir, main page]

File: ansi-4

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 (23 lines) | stat: -rwxr-xr-x 386 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
#!/bin/sh

t=`basename $0`

cat > $t.I <<\EOF
#if (FOO)
# error ick
#else this is non-ansi
#endif so is this
EOF

cat > $t.EO <<\EOF
EOF

cat > $t.Ee <<\EOF
cppi: standard input: line 3: text following `#else' violates ANSI standard
cppi: standard input: line 4: text following `#endif' violates ANSI standard
EOF

options='-c --ansi'
expected_status=1

. $top_srcdir/tests/test-common