Mercurial > projects > ldc
annotate test/bug5.d @ 31:2841234d2aea trunk
[svn r35] * Attributes on struct fields/methods now work
* Updated object.d to 1.021
* Added -novalidate command line option. this is sometimes useful when debugging as it may let you read the .ll even if it's invalid.
author | lindquist |
---|---|
date | Thu, 04 Oct 2007 16:44:07 +0200 |
parents | |
children |
rev | line source |
---|---|
lindquist@31 | 1 module bug5; |
lindquist@31 | 2 |
lindquist@31 | 3 struct hah { |
lindquist@31 | 4 static hah f() |
lindquist@31 | 5 { |
lindquist@31 | 6 hah res; |
lindquist@31 | 7 return res; |
lindquist@31 | 8 } |
lindquist@31 | 9 hah g() |
lindquist@31 | 10 { |
lindquist@31 | 11 return hah.init; |
lindquist@31 | 12 } |
lindquist@31 | 13 } |
lindquist@31 | 14 |
lindquist@31 | 15 void main() |
lindquist@31 | 16 { |
lindquist@31 | 17 } |