annotate tests/mini/debug10.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/debug10.d@8187884566fa
children
rev   line source
lindquist@254 1 module tangotests.debug10;
lindquist@254 2
lindquist@254 3 struct Vec2
lindquist@254 4 {
lindquist@254 5 float x,y;
lindquist@254 6 }
lindquist@254 7
lindquist@254 8 void main()
lindquist@254 9 {
lindquist@254 10 Vec2 v2;
lindquist@254 11 char[] str = "hello";
lindquist@254 12 int i = void;
lindquist@254 13 float f = 3.14;
lindquist@254 14 func(v2, v2, str, i, f);
lindquist@254 15 }
lindquist@254 16
lindquist@254 17 void func(Vec2 v2, ref Vec2 rv2, char[] str, out int i, ref float f)
lindquist@254 18 {
lindquist@254 19 int* fail;
lindquist@254 20 *fail = 0;
lindquist@254 21 }