comparison 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
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 module tangotests.debug10;
2
3 struct Vec2
4 {
5 float x,y;
6 }
7
8 void main()
9 {
10 Vec2 v2;
11 char[] str = "hello";
12 int i = void;
13 float f = 3.14;
14 func(v2, v2, str, i, f);
15 }
16
17 void func(Vec2 v2, ref Vec2 rv2, char[] str, out int i, ref float f)
18 {
19 int* fail;
20 *fail = 0;
21 }