Debian Codegraph @

tests/d4

raw symbols SCIP
1 #!/bin/sh
2
3 t=`basename $0`
4
5 cat > $t.I <<\EOF
6 " string containing otherwise-valid cpp-directive \
7 #if
8 "
9 #if 1
10 #error
11 #else
12 #include "foo"
13 #endif
14
15 int c = '"';
16 char *s = " /* \\";
17 #if 1
18 #error
19 #else
20 #include "foo"
21 #endif
22
23 fprintf(out, "#line 1 \"%s\"\n", argv[1]);
24
25 #if 1
26 #error
27 #else
28 #include "foo"
29 #endif
30
31 char *s = "\"";
32
33 #if 1
34 # error
35 #else
36 #include "foo"
37 #endif
38 EOF
39
40 # ---------------------------------------------------------------------
41
42 cat > $t.EO <<\EOF
43 " string containing otherwise-valid cpp-directive \
44 #if
45 "
46 #if 1
47 # error
48 #else
49 # include "foo"
50 #endif
51
52 int c = '"';
53 char *s = " /* \\";
54 #if 1
55 # error
56 #else
57 # include "foo"
58 #endif
59
60 fprintf(out, "#line 1 \"%s\"\n", argv[1]);
61
62 #if 1
63 # error
64 #else
65 # include "foo"
66 #endif
67
68 char *s = "\"";
69
70 #if 1
71 # error
72 #else
73 # include "foo"
74 #endif
75 EOF
76
77 # ---------------------------------------------------------------------
78
79 cat > $t.Ee <<\EOF
80 EOF
81
82 options=
83 expected_status=0
84
85 . $top_srcdir/tests/test-common