History

tests/tcctest.c: Fix up format strings.

Edmund Grimley Evans committed 11 years ago

Commit 9bf0e571 parent f4082851 file · +28 −28Browse files

Unified · Split

tests/tcctest.c+28−28
@@ -173,64 +173,64 @@ int qq(int x) · 172 unmodified lines
173void intdiv_test(void)173void intdiv_test(void)
174{174{
175 printf("18/21=%u\n", 18/21);175 printf("18/21=%u\n", 18/21);
176 printf("18%21=%u\n", 18%21);176 printf("18%%21=%u\n", 18%21);
177 printf("41/21=%u\n", 41/21);177 printf("41/21=%u\n", 41/21);
178 printf("41%21=%u\n", 41%21);178 printf("41%%21=%u\n", 41%21);
179 printf("42/21=%u\n", 42/21);179 printf("42/21=%u\n", 42/21);
180 printf("42%21=%u\n", 42%21);180 printf("42%%21=%u\n", 42%21);
181 printf("43/21=%u\n", 43/21);181 printf("43/21=%u\n", 43/21);
182 printf("43%21=%u\n", 43%21);182 printf("43%%21=%u\n", 43%21);
183 printf("126/21=%u\n", 126/21);183 printf("126/21=%u\n", 126/21);
184 printf("12%/21=%u\n", 126%21);184 printf("126%%21=%u\n", 126%21);
185 printf("131/21=%u\n", 131/21);185 printf("131/21=%u\n", 131/21);
186 printf("131%21=%u\n", 131%21);186 printf("131%%21=%u\n", 131%21);
187 printf("(UINT_MAX/2+3)/2=%u\n", (UINT_MAX/2+3)/2);187 printf("(UINT_MAX/2+3)/2=%u\n", (UINT_MAX/2+3)/2);
188 printf("(UINT_MAX/2+3)%2=%u\n", (UINT_MAX/2+3)%2);188 printf("(UINT_MAX/2+3)%%2=%u\n", (UINT_MAX/2+3)%2);
189 189
190 printf("18/-21=%u\n", 18/-21);190 printf("18/-21=%u\n", 18/-21);
191 printf("18%-21=%u\n", 18%-21);191 printf("18%%-21=%u\n", 18%-21);
192 printf("41/-21=%u\n", 41/-21);192 printf("41/-21=%u\n", 41/-21);
193 printf("41%-21=%u\n", 41%-21);193 printf("41%%-21=%u\n", 41%-21);
194 printf("42/-21=%u\n", 42/-21);194 printf("42/-21=%u\n", 42/-21);
195 printf("42%-21=%u\n", 42%-21);195 printf("42%%-21=%u\n", 42%-21);
196 printf("43/-21=%u\n", 43/-21);196 printf("43/-21=%u\n", 43/-21);
197 printf("43%-21=%u\n", 43%-21);197 printf("43%%-21=%u\n", 43%-21);
198 printf("126/-21=%u\n", 126/-21);198 printf("126/-21=%u\n", 126/-21);
199 printf("12%/-21=%u\n", 126%-21);199 printf("126%%-21=%u\n", 126%-21);
200 printf("131/-21=%u\n", 131/-21);200 printf("131/-21=%u\n", 131/-21);
201 printf("131%-21=%u\n", 131%-21);201 printf("131%%-21=%u\n", 131%-21);
202 printf("(UINT_MAX/2+3)/-2=%u\n", (UINT_MAX/2+3)/-2);202 printf("(UINT_MAX/2+3)/-2=%u\n", (UINT_MAX/2+3)/-2);
203 printf("(UINT_MAX/2+3)%-2=%u\n", (UINT_MAX/2+3)%-2);203 printf("(UINT_MAX/2+3)%%-2=%u\n", (UINT_MAX/2+3)%-2);
204 204
205 printf("-18/21=%u\n", -18/21);205 printf("-18/21=%u\n", -18/21);
206 printf("-18%21=%u\n", -18%21);206 printf("-18%%21=%u\n", -18%21);
207 printf("-41/21=%u\n", -41/21);207 printf("-41/21=%u\n", -41/21);
208 printf("-41%21=%u\n", -41%21);208 printf("-41%%21=%u\n", -41%21);
209 printf("-42/21=%u\n", -42/21);209 printf("-42/21=%u\n", -42/21);
210 printf("-42%21=%u\n", -42%21);210 printf("-42%%21=%u\n", -42%21);
211 printf("-43/21=%u\n", -43/21);211 printf("-43/21=%u\n", -43/21);
212 printf("-43%21=%u\n", -43%21);212 printf("-43%%21=%u\n", -43%21);
213 printf("-126/21=%u\n", -126/21);213 printf("-126/21=%u\n", -126/21);
214 printf("-12%/21=%u\n", -126%21);214 printf("-126%%21=%u\n", -126%21);
215 printf("-131/21=%u\n", -131/21);215 printf("-131/21=%u\n", -131/21);
216 printf("-131%21=%u\n", -131%21);216 printf("-131%%21=%u\n", -131%21);
217 printf("-(UINT_MAX/2+3)/2=%u\n", (0-(UINT_MAX/2+3))/2);217 printf("-(UINT_MAX/2+3)/2=%u\n", (0-(UINT_MAX/2+3))/2);
218 printf("-(UINT_MAX/2+3)%2=%u\n", (0-(UINT_MAX/2+3))%2);218 printf("-(UINT_MAX/2+3)%%2=%u\n", (0-(UINT_MAX/2+3))%2);
219 219
220 printf("-18/-21=%u\n", -18/-21);220 printf("-18/-21=%u\n", -18/-21);
221 printf("-18%-21=%u\n", -18%-21);221 printf("-18%%-21=%u\n", -18%-21);
222 printf("-41/-21=%u\n", -41/-21);222 printf("-41/-21=%u\n", -41/-21);
223 printf("-41%-21=%u\n", -41%-21);223 printf("-41%%-21=%u\n", -41%-21);
224 printf("-42/-21=%u\n", -42/-21);224 printf("-42/-21=%u\n", -42/-21);
225 printf("-42%-21=%u\n", -42%-21);225 printf("-42%%-21=%u\n", -42%-21);
226 printf("-43/-21=%u\n", -43/-21);226 printf("-43/-21=%u\n", -43/-21);
227 printf("-43%-21=%u\n", -43%-21);227 printf("-43%%-21=%u\n", -43%-21);
228 printf("-126/-21=%u\n", -126/-21);228 printf("-126/-21=%u\n", -126/-21);
229 printf("-12%/-21=%u\n", -126%-21);229 printf("-126%%-21=%u\n", -126%-21);
230 printf("-131/-21=%u\n", -131/-21);230 printf("-131/-21=%u\n", -131/-21);
231 printf("-131%-21=%u\n", -131%-21);231 printf("-131%%-21=%u\n", -131%-21);
232 printf("-(UINT_MAX/2+3)/-2=%u\n", (0-(UINT_MAX/2+3))/-2);232 printf("-(UINT_MAX/2+3)/-2=%u\n", (0-(UINT_MAX/2+3))/-2);
233 printf("-(UINT_MAX/2+3)%-2=%u\n", (0-(UINT_MAX/2+3))%-2);233 printf("-(UINT_MAX/2+3)%%-2=%u\n", (0-(UINT_MAX/2+3))%-2);
234}234}
235 235
236void macro_test(void)236void macro_test(void)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t