dmd/compiler/test/compilable/chkformat.d
2022-07-09 18:53:07 +02:00

27 lines
440 B
D

// https://issues.dlang.org/show_bug.cgi?id=20643
// https://issues.dlang.org/show_bug.cgi?id=20644
/*
TEST_OUTPUT:
----
compilable/chkformat.d(14): Deprecation: more format specifiers than 0 arguments
----
*/
import core.stdc.stdio;
void main()
{
// b20643
printf("%d \n");
// b20644
ubyte b;
printf("%hhu \n", b);
char c = '-';
printf("%c", c);
short s;
printf("%hd", s);
printf("%hn", &s);
}