summaryrefslogtreecommitdiffstats
path: root/src/CBot/tests/scenarios/B.txt
blob: 53715f8a6b33ea27561d6d5cf45c3ed15ccdc319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    float [ ] TEST2 ( int [ ] param )
    {
        float [ ] z;
        for ( int i = 0 ; i < sizeof( param ) ; i++ ) try { z [i] = param [i] / 3; }
        return z;
    }

extern public void T()
{
	int a [4];
	for ( int i = 0 ; i < 3 ; i++ ) a[i] = 4*i;
	a [2] = 22;

	float [] b ;
	b = TEST2 ( a ) ;
	show ( a, b );
}