mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Fix hex strings being printed as regular strings
This commit is contained in:
parent
8bf2b08a1b
commit
5fe90b63d3
6 changed files with 46 additions and 12 deletions
|
@ -256,6 +256,10 @@ void testHexstring()
|
|||
// Test that mangling of StringExp with size 8 is the same as array literal mangling:
|
||||
void f(immutable ulong[] a)() {}
|
||||
static assert(f!y.mangleof == f!([0x1122334455667788, 0xAABBCCDDEEFF0099]).mangleof);
|
||||
|
||||
// Test printing StringExp with size 8
|
||||
enum toStr(immutable ulong[] v) = v.stringof;
|
||||
static assert(toStr!y == `x"88776655443322119900FFEEDDCCBBAA"`);
|
||||
}
|
||||
|
||||
/***************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue