diff test/bug51.d @ 88:058d3925950e trunk

[svn r92] Fixed support for statically initialized unions. lots of bugfixes as cleanups too.
author lindquist
date Tue, 06 Nov 2007 10:03:14 +0100
parents
children 70d6113eeb8c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/bug51.d	Tue Nov 06 10:03:14 2007 +0100
@@ -0,0 +1,26 @@
+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()
+{
+}