diff test/union6.d @ 78:2332006e1fa4 trunk

[svn r82] Fixed: Fall-through switch cases were broken.
author lindquist
date Wed, 31 Oct 2007 20:50:21 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/union6.d	Wed Oct 31 20:50:21 2007 +0100
@@ -0,0 +1,22 @@
+module union6;
+
+pragma(LLVM_internal, "notypeinfo") {
+    struct S
+    {
+        byte a;
+        byte b;
+    }
+    union U
+    {
+        byte a;
+        byte b;
+        S c;
+    }
+}
+
+void main()
+{
+    U u;
+    auto a = u.c.b;
+    //auto c = u.s.l;
+}