- pragma(msg) interprets printf format specifiers
This commit is contained in:
Dennis 2025-02-19 06:42:21 +01:00 committed by GitHub
parent eb083c06d9
commit 34cf3a9503
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -13,6 +13,7 @@ print dstring
foo_str
foo_wstr
foo_dstr
X%nY
---
*/
@ -33,4 +34,7 @@ void main()
pragma(msg, a);
pragma(msg, b);
pragma(msg, c);
// https://github.com/dlang/dmd/issues/20894
pragma(msg, "X%nY");
}