repo.or.cz
/
cppi.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
maint: import tests/init.sh from Gnulib during bootstrap
[cppi.git]
/
tests
/
ansi-4
blob
3de939bc79bd149ea882eab9d815fb28cfa33d76
1
#!/bin/sh
2
3
t
=
`basename
$0
`
4
5
cat
>
$t
.I
<<
\EOF
6
#if (FOO)
7
# error ick
8
#else this is non-ansi
9
#endif so is this
10
EOF
11
12
cat
>
$t
.EO
<<
\EOF
13
EOF
14
15
cat
>
$t
.Ee
<<
\EOF
16
cppi
:
standard input
:
line
3
:
text following
`#else' violates ANSI standard
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
/
test
s
/
test-common