mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
16 lines
286 B
D
16 lines
286 B
D
// https://issues.dlang.org/show_bug.cgi?id=21659
|
|
|
|
// Compiler-recognized ident
|
|
enum __c_ulonglong : ulong;
|
|
|
|
private union EndianSwapper(T)
|
|
{
|
|
T value;
|
|
ubyte[T.sizeof] array;
|
|
static assert(T.sizeof == ulong.sizeof);
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
EndianSwapper!(__c_ulonglong) val;
|
|
}
|