dmd/compiler/test/compilable/chkformat.d
Royal Simpson Pinto 45e4a09a3e
feat(errors): enable verrors=context globally (#20576)
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2025-01-03 05:17:59 +08:00

28 lines
474 B
D

// https://issues.dlang.org/show_bug.cgi?id=20643
// https://issues.dlang.org/show_bug.cgi?id=20644
// REQUIRED_ARGS: -verrors=simple
/*
TEST_OUTPUT:
----
compilable/chkformat.d(15): 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);
}