comparison tests/mpp/good/misc.out @ 0:13d2b8934445

Import AnaGram (near-)release tree into Mercurial.
author David A. Holland
date Sat, 22 Dec 2007 17:52:45 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:13d2b8934445
1 ////////////////////////////////////////////////////////////
2 ...line splicing
3 he llo
4 //comment
5 //comment
6 SPL IT
7 int c='\012';
8 const char*x="blah \012";
9 ////////////////////////////////////////////////////////////
10 ...digraphs
11 %:hi
12 fu%:%:bar
13 %:<:
14 %::>
15 %:<%
16 %:%>
17 %:%:
18 %:
19 %:%:
20 %:define FOO 123
21 wrong
22 %:undef FOO
23 right
24 ////////////////////////////////////////////////////////////
25 ...comments
26 a/b;
27 a=b/blah
28 -c;
29 /* not comment */
30 // not comment
31 <a b>
32 not comment
33 stuff//comment staff
34 (should be stuff staff on one line)
35 stuff staff
36 (should be stuff staff on one line)
37 ////////////////////////////////////////////////////////////
38 ...conditionals
39 right
40 right
41 right
42 right
43 right
44 right
45 right
46 right
47 right
48 right
49 right
50 right
51 right
52 right
53 right
54 defined(2)should have a 2 in it
55 defined(THREE)should not be changed
56 right
57 right
58 right
59 right
60 right
61 right
62 wrong
63 wrong
64 right
65 right
66 right
67 ////////////////////////////////////////////////////////////
68 ...definitions
69 aa
70 DD
71 EE
72 aa()
73 bb
74 DD()
75 DD(,)
76 EE(,)
77 DD(,,)
78 EE(,,)
79 gg should be gg
80 right
81 fedine should be fedine
82 dunef should be dunef
83 difnef should be difnef
84 right
85 right
86 right
87 right
88 right
89 right
90 wrong
91 (1,2)(3,4)(5,6)
92 SUM(1,2)should be 1+2
93 ../../../src/tests/mpp/misc.c: Line 393, Column 5: Syntax error in constant expression in macro expansion
94 wrong
95 SUM(1,SUM(2,3))should be 1+2+3
96 TWO+1 should be two+1
97 ...legal redefinitions
98 ////////////////////////////////////////////////////////////
99 ...stringize
100 "a b c"should be"a b c"
101 "a b c"should be"a b c"
102 "\"stry\\n\""should be"\"stry\\n\""
103 "b"should be"b"
104 "a b"should be"a b"
105 "a b"should be"a b"
106 "SUM(1,2)"should give"SUM(1,2)",not"1+2"
107 "SUM"(3,4)should give"SUM"(3,4),not"3+4"
108 ////////////////////////////////////////////////////////////
109 ...concat
110 "1H 2"should be"1 H 2"
111 "1H2"should be"1 ## 2"
112 ...pasting of punctuation is not allowed
113 ++
114 --
115 <<=
116 >>=
117 <<=
118 >>=
119 <>=
120 <CAT(<,=)
121 >CAT(>,=)
122 ++
123 --
124 <<=
125 >>=
126 <<=
127 >>=
128 <>=
129 <<=
130 >>=
131 100 should be 100
132 "bast"--->"bast"
133 KLU should be"KLU"
134 10//comment
135 IDENTITYIDENTITY(z)should be IDENTITYIDENTITY(z)
136 IDENTITY( z)should be IDENTITYz
137 12 should be 12
138 ////////////////////////////////////////////////////////////
139 ...directive recognition
140 right
141 right
142 right
143 right
144 ////////////////////////////////////////////////////////////
145 ...keywords
146 right
147 ////////////////////////////////////////////////////////////
148 ...builtin macros
149 __STDC__ should be 1
150 __STDC_VERSION__ should be a date