version 1.18
[cppi.git] / tests / d2
blobf3f1e532b7540d4051d27cee403d6f33603b48a1
1 #!/bin/sh
3 t=`basename $0`
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
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
59 cat > $t.Ee <<\EOF
60 EOF
62 options=
63 expected_status=0
65 . $top_srcdir/tests/test-common