Mercurial > projects > ldc
annotate tests/mini/structs7.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 |
rev | line source |
---|---|
lindquist@100 | 1 module structs7; |
lindquist@100 | 2 |
lindquist@100 | 3 struct S |
lindquist@100 | 4 { |
lindquist@100 | 5 int i; |
lindquist@100 | 6 long l; |
lindquist@100 | 7 } |
lindquist@100 | 8 |
lindquist@100 | 9 void main() |
lindquist@100 | 10 { |
lindquist@100 | 11 S s = void; |
lindquist@100 | 12 int i = s.i; |
lindquist@100 | 13 long l = s.l; |
lindquist@100 | 14 } |