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
173173 void intdiv_test(void)
174174 {
175175 printf("18/21=%u\n", 18/21);
176− printf("18%21=%u\n", 18%21);
176+ printf("18%%21=%u\n", 18%21);
177177 printf("41/21=%u\n", 41/21);
178− printf("41%21=%u\n", 41%21);
178+ printf("41%%21=%u\n", 41%21);
179179 printf("42/21=%u\n", 42/21);
180− printf("42%21=%u\n", 42%21);
180+ printf("42%%21=%u\n", 42%21);
181181 printf("43/21=%u\n", 43/21);
182− printf("43%21=%u\n", 43%21);
182+ printf("43%%21=%u\n", 43%21);
183183 printf("126/21=%u\n", 126/21);
184− printf("12%/21=%u\n", 126%21);
184+ printf("126%%21=%u\n", 126%21);
185185 printf("131/21=%u\n", 131/21);
186− printf("131%21=%u\n", 131%21);
186+ printf("131%%21=%u\n", 131%21);
187187 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);
189189
190190 printf("18/-21=%u\n", 18/-21);
191− printf("18%-21=%u\n", 18%-21);
191+ printf("18%%-21=%u\n", 18%-21);
192192 printf("41/-21=%u\n", 41/-21);
193− printf("41%-21=%u\n", 41%-21);
193+ printf("41%%-21=%u\n", 41%-21);
194194 printf("42/-21=%u\n", 42/-21);
195− printf("42%-21=%u\n", 42%-21);
195+ printf("42%%-21=%u\n", 42%-21);
196196 printf("43/-21=%u\n", 43/-21);
197− printf("43%-21=%u\n", 43%-21);
197+ printf("43%%-21=%u\n", 43%-21);
198198 printf("126/-21=%u\n", 126/-21);
199− printf("12%/-21=%u\n", 126%-21);
199+ printf("126%%-21=%u\n", 126%-21);
200200 printf("131/-21=%u\n", 131/-21);
201− printf("131%-21=%u\n", 131%-21);
201+ printf("131%%-21=%u\n", 131%-21);
202202 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);
204204
205205 printf("-18/21=%u\n", -18/21);
206− printf("-18%21=%u\n", -18%21);
206+ printf("-18%%21=%u\n", -18%21);
207207 printf("-41/21=%u\n", -41/21);
208− printf("-41%21=%u\n", -41%21);
208+ printf("-41%%21=%u\n", -41%21);
209209 printf("-42/21=%u\n", -42/21);
210− printf("-42%21=%u\n", -42%21);
210+ printf("-42%%21=%u\n", -42%21);
211211 printf("-43/21=%u\n", -43/21);
212− printf("-43%21=%u\n", -43%21);
212+ printf("-43%%21=%u\n", -43%21);
213213 printf("-126/21=%u\n", -126/21);
214− printf("-12%/21=%u\n", -126%21);
214+ printf("-126%%21=%u\n", -126%21);
215215 printf("-131/21=%u\n", -131/21);
216− printf("-131%21=%u\n", -131%21);
216+ printf("-131%%21=%u\n", -131%21);
217217 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);
219219
220220 printf("-18/-21=%u\n", -18/-21);
221− printf("-18%-21=%u\n", -18%-21);
221+ printf("-18%%-21=%u\n", -18%-21);
222222 printf("-41/-21=%u\n", -41/-21);
223− printf("-41%-21=%u\n", -41%-21);
223+ printf("-41%%-21=%u\n", -41%-21);
224224 printf("-42/-21=%u\n", -42/-21);
225− printf("-42%-21=%u\n", -42%-21);
225+ printf("-42%%-21=%u\n", -42%-21);
226226 printf("-43/-21=%u\n", -43/-21);
227− printf("-43%-21=%u\n", -43%-21);
227+ printf("-43%%-21=%u\n", -43%-21);
228228 printf("-126/-21=%u\n", -126/-21);
229− printf("-12%/-21=%u\n", -126%-21);
229+ printf("-126%%-21=%u\n", -126%-21);
230230 printf("-131/-21=%u\n", -131/-21);
231− printf("-131%-21=%u\n", -131%-21);
231+ printf("-131%%-21=%u\n", -131%-21);
232232 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);
234234 }
235235
236236 void 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