Mercurial > projects > ldc
diff tests/mini/union5.d @ 443:44f08170f4ef
Removed tango from the repository and instead added a runtime dir with the files needed to patch and build tango from svn.
Reworked the LLVMDC specific pragmas.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Fri, 01 Aug 2008 00:32:06 +0200 |
parents | 1bb99290e03a |
children |
line wrap: on
line diff
--- a/tests/mini/union5.d Thu Jul 31 19:14:49 2008 +0200 +++ b/tests/mini/union5.d Fri Aug 01 00:32:06 2008 +0200 @@ -1,26 +1,23 @@ module union5; -pragma(LLVM_internal, "notypeinfo") +union S { - union S - { - T t; - U u; - uint i; - struct { - ushort sl,sh; - } + T t; + U u; + uint i; + struct { + ushort sl,sh; } +} - struct T - { - int i; - } +struct T +{ + int i; +} - struct U - { - float f; - } +struct U +{ + float f; } void main()