Mercurial > projects > ldc
view test/bug51.d @ 91:3f949c6e2e9d trunk
[svn r95] added support for mains like:
T main(string[] args)
fixed a bug with slicing a pointer that is an argument with no storage
author | lindquist |
---|---|
date | Wed, 07 Nov 2007 04:52:56 +0100 |
parents | 058d3925950e |
children | 70d6113eeb8c |
line wrap: on
line source
module bug51; import std.stdint; union in6_addr { private union _in6_u_t { uint8_t[16] u6_addr8; uint16_t[8] u6_addr16; uint32_t[4] u6_addr32; } _in6_u_t in6_u; uint8_t[16] s6_addr8; uint16_t[8] s6_addr16; uint32_t[4] s6_addr32; } const in6_addr IN6ADDR_ANY = { s6_addr8: [0] }; const in6_addr IN6ADDR_LOOPBACK = { s6_addr8: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1] }; void main() { }