PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/test.d

http://github.com/wilkie/djehuty
D | 72 lines | 56 code | 16 blank | 0 comment | 1 complexity | b6299044824b98bc09c6aec06459fbbc MD5 | raw file
 1module test.foo;
 2
 3import foo;
 4
 5pragma(msg);
 6
 7int b[][][][][];
 8int ((((q))))[][];
 9int a;
10
11enum FooEnum;
12enum FooBar {
13	Member1,
14	Member2,
15}
16
17struct FooStruct {
18	struct FooInnerStruct {
19	}
20}
21
22version(FooBarDeluxe) {
23}
24
25version = ReleaseFoo;
26
27debug(FooFooBunny) {
28}
29
30debug(FooFooBunnyEars):
31
32debug {
33}
34
35debug:
36
37unittest {
38}
39
40class FooClass {
41	this(...) {
42		for ( ; 2+3*5 ; ) {
43		}
44	}
45
46	~this() {
47	}
48
49	this(int a, int b) {
50		switch("fudge") {
51			case 4:
52				goto default;
53				goto case 3;
54				goto foo;
55			case 6:
56				break;
57			case 7:
58				break foo;
59			default:
60				continue;
61		}
62		return 4;
63		return;
64		volatile;
65		volatile switch(3) { case 4: }
66		throw null;
67		pragma(msg);
68	}
69
70	interface FooBarInterface {
71	}
72}