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
version 1.18
[cppi.git]
/
tests
/
d2
blob
f3f1e532b7540d4051d27cee403d6f33603b48a1
1
#!/bin/sh
2
3
t
=
`basename
$0
`
4
5
cat
>
$t
.I
<<
\EOF
6
#error 0
7
#if 0 /* c1 */
8
# if 0 /* c1 */
9
#error 1
10
#else /* c2 */
11
#error 2
12
# endif /* c3 */
13
#error 3
14
#else /* c2 */
15
#error 4
16
#if 0 /* c1 */
17
#error 5
18
#if 0 /* c1 */
19
#error 6
20
#else /* c2 */
21
#error 7
22
#endif /* c3 */
23
#error 8
24
#else /* c2 */
25
#error 9
26
# endif /* c3 */
27
#error a
28
# endif /* c3 */
29
#error b
30
EOF
31
32
cat
>
$t
.EO
<<
\EOF
33
#error 0
34
#if 0 /* c1 */
35
# if 0 /* c1 */
36
# error 1
37
# else /* c2 */
38
# error 2
39
# endif /* c3 */
40
# error 3
41
#else /* c2 */
42
# error 4
43
# if 0 /* c1 */
44
# error 5
45
# if 0 /* c1 */
46
# error 6
47
# else /* c2 */
48
# error 7
49
# endif /* c3 */
50
# error 8
51
# else /* c2 */
52
# error 9
53
# endif /* c3 */
54
# error a
55
#endif /* c3 */
56
#error b
57
EOF
58
59
cat
>
$t
.Ee
<<
\EOF
60
EOF
61
62
options
=
63
expected_status
=
0
64
65
.
$top_srcdir
/
test
s
/
test-common