gcc/testsuite/gdc.test/compilable/test21659.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=21659 |
| 2 | |
| 3 | // Compiler-recognized ident |
| 4 | enum __c_ulonglong : ulong; |
| 5 | |
| 6 | private union EndianSwapper(T) |
| 7 | { |
| 8 | T value; |
| 9 | ubyte[T.sizeof] array; |
| 10 | static assert(T.sizeof == ulong.sizeof); |
| 11 | } |
| 12 | |
| 13 | void main () |
| 14 | { |
| 15 | EndianSwapper!(__c_ulonglong) val; |
| 16 | } |