Mercurial > projects > ldc
annotate tests/mini/debug9.d @ 341:1bb99290e03a trunk
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 02:51:19 +0200 |
parents | tangotests/debug9.d@8187884566fa |
children |
rev | line source |
---|---|
lindquist@254 | 1 module tangotests.debug9; |
lindquist@254 | 2 |
lindquist@254 | 3 struct Foo |
lindquist@254 | 4 { |
lindquist@254 | 5 int a,b,c; |
lindquist@254 | 6 |
lindquist@254 | 7 void func() |
lindquist@254 | 8 { |
lindquist@254 | 9 int* fail; |
lindquist@254 | 10 *fail = 0; |
lindquist@254 | 11 } |
lindquist@254 | 12 } |
lindquist@254 | 13 |
lindquist@254 | 14 void main() |
lindquist@254 | 15 { |
lindquist@254 | 16 Foo foo = Foo(1,10,73); |
lindquist@254 | 17 foo.func(); |
lindquist@254 | 18 } |