Debian Codegraph @

gcc/testsuite/gdc.dg/torture/imports/pr108055write.d

raw
1 module imports.pr108055write;
2 import imports.pr108055spec;
3
4 void formatValueImpl(Writer, T, Char)(ref Writer , const(T) ,
5 scope const ref FormatSpec!Char )
6 {
7 T val;
8 char spec;
9
10 (ref val) @trusted {
11 return (cast(const char*) &val)[0 .. val.sizeof];
12 }(val);
13
14 }
15
16 void formatValue(Writer, T, Char)(Writer w, T val, Char f)
17 {
18 formatValueImpl(w, val, f);
19 }