comparison test/bug51.d @ 92:70d6113eeb8c trunk

[svn r96] Updated to DMD 1.023. Regular bugfixes.
author lindquist
date Thu, 08 Nov 2007 19:13:28 +0100
parents 058d3925950e
children 027b8d8b71ec
comparison
equal deleted inserted replaced
91:3f949c6e2e9d 92:70d6113eeb8c
1 module bug51; 1 module bug51;
2 2 const ubyte[3] arr1 = 0;
3 import std.stdint; 3 const ubyte[3] arr2 = [0];
4 4 const ubyte[3] arr3 = [0:1];
5 union in6_addr 5 void main() {}
6 {
7 private union _in6_u_t
8 {
9 uint8_t[16] u6_addr8;
10 uint16_t[8] u6_addr16;
11 uint32_t[4] u6_addr32;
12 }
13 _in6_u_t in6_u;
14
15 uint8_t[16] s6_addr8;
16 uint16_t[8] s6_addr16;
17 uint32_t[4] s6_addr32;
18 }
19
20
21 const in6_addr IN6ADDR_ANY = { s6_addr8: [0] };
22 const in6_addr IN6ADDR_LOOPBACK = { s6_addr8: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1] };
23
24 void main()
25 {
26 }