| 1 |
// https://issues.dlang.org/show_bug.cgi?id=20643 |
| 2 |
// https://issues.dlang.org/show_bug.cgi?id=20644 |
| 3 |
// REQUIRED_ARGS: -verrors=simple |
| 4 |
/* |
| 5 |
TEST_OUTPUT: |
| 6 |
---- |
| 7 |
compilable/chkformat.d(15): Deprecation: more format specifiers than 0 arguments |
| 8 |
---- |
| 9 |
*/ |
| 10 |
import core.stdc.stdio; |
| 11 |
|
| 12 |
void main() |
| 13 |
{ |
| 14 |
// b20643 |
| 15 |
printf("%d \n"); |
| 16 |
|
| 17 |
// b20644 |
| 18 |
ubyte b; |
| 19 |
printf("%hhu \n", b); |
| 20 |
|
| 21 |
char c = '-'; |
| 22 |
printf("%c", c); |
| 23 |
|
| 24 |
short s; |
| 25 |
printf("%hd", s); |
| 26 |
|
| 27 |
printf("%hn", &s); |
| 28 |
} |