File: test.d

package info (click to toggle)
dustmite 0.0.430-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,660 kB
  • sloc: cpp: 202; sh: 25; makefile: 14
file content (45 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import std.stdio;

int total;

void a()
{
	total++;
}

void b(int )
{
	total++;
}

void c(){
	total++;
}

void d1(int foo)
{
	total += foo;
}

void d2(int bar)
{
	total += bar;
}

void d3(int baz)
{
	total += baz;
}

void main()
{
	a;
	b(3);
	c;

	d1(1);
	d2(1);
	d3(1);

	writeln(total==6);
}