Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
442:76078c8ab5b9 | 443:44f08170f4ef |
---|---|
1 module union5; | 1 module union5; |
2 | 2 |
3 pragma(LLVM_internal, "notypeinfo") | 3 union S |
4 { | 4 { |
5 union S | 5 T t; |
6 { | 6 U u; |
7 T t; | 7 uint i; |
8 U u; | 8 struct { |
9 uint i; | 9 ushort sl,sh; |
10 struct { | |
11 ushort sl,sh; | |
12 } | |
13 } | 10 } |
11 } | |
14 | 12 |
15 struct T | 13 struct T |
16 { | 14 { |
17 int i; | 15 int i; |
18 } | 16 } |
19 | 17 |
20 struct U | 18 struct U |
21 { | 19 { |
22 float f; | 20 float f; |
23 } | |
24 } | 21 } |
25 | 22 |
26 void main() | 23 void main() |
27 { | 24 { |
28 S s; | 25 S s; |