annotate test/union6.d @ 323:0d52412d5b1a trunk

[svn r344] Fixed some very minor issues with the usage listing when calling llvmdc with no arguments. Changed the way moduleinfo is registered to use the same approach as DMD, this eliminates the need for correct linking order and should make the way for using a natively compiled runtime library. This should speed up linking tremendously and should now be possible. Fixed the llvm.used array to only be emitted if really necessary.
author lindquist
date Wed, 09 Jul 2008 23:43:51 +0200
parents 2332006e1fa4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
78
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
1 module union6;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
2
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
3 pragma(LLVM_internal, "notypeinfo") {
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
4 struct S
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
5 {
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
6 byte a;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
7 byte b;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
8 }
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
9 union U
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
10 {
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
11 byte a;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
12 byte b;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
13 S c;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
14 }
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
15 }
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
16
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
17 void main()
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
18 {
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
19 U u;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
20 auto a = u.c.b;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
21 //auto c = u.s.l;
2332006e1fa4 [svn r82] Fixed: Fall-through switch cases were broken.
lindquist
parents:
diff changeset
22 }