maint: update bootstrap from gnulib
[cppi.git] / tests / d4
blob2b5aae295bc4e772ccd43f70f65ae481c70645c7
1 #!/bin/sh
3 t=`basename $0`
5 cat > $t.I <<\EOF
6 " string containing otherwise-valid cpp-directive \
7 #if
9 #if 1
10 #error
11 #else
12 #include "foo"
13 #endif
15 int c = '"';
16 char *s = " /* \\";
17 #if 1
18 #error
19 #else
20 #include "foo"
21 #endif
23 fprintf(out, "#line 1 \"%s\"\n", argv[1]);
25 #if 1
26 #error
27 #else
28 #include "foo"
29 #endif
31 char *s = "\"";
33 #if 1
34 # error
35 #else
36 #include "foo"
37 #endif
38 EOF
40 # ---------------------------------------------------------------------
42 cat > $t.EO <<\EOF
43 " string containing otherwise-valid cpp-directive \
44 #if
46 #if 1
47 # error
48 #else
49 # include "foo"
50 #endif
52 int c = '"';
53 char *s = " /* \\";
54 #if 1
55 # error
56 #else
57 # include "foo"
58 #endif
60 fprintf(out, "#line 1 \"%s\"\n", argv[1]);
62 #if 1
63 # error
64 #else
65 # include "foo"
66 #endif
68 char *s = "\"";
70 #if 1
71 # error
72 #else
73 # include "foo"
74 #endif
75 EOF
77 # ---------------------------------------------------------------------
79 cat > $t.Ee <<\EOF
80 EOF
82 options=
83 expected_status=0
85 . $top_srcdir/tests/test-common