Blob


1 # default protocol version
2 const npversion = "9P2000"
4 # some constants
5 const (
6 one = 1:u8
7 two = 2
9 notag = -1:u8
11 n = 4
12 )
14 proc unreachable(qid) { # and useless
15 type = qid.type
16 assert (
17 type == qid.type
18 )
19 }
21 proc test(x) {
22 skip()
23 }
25 proc myrealprint(...) {
26 print(...)
27 }
29 proc myprint(...) {
30 myrealprint(...)
31 }
33 testing "skip called in proc" dir "./root" {
34 foo = 5:u8
35 myprint("hello", "foo is", foo)
36 test(3:u32)
37 assert 1 == 0
39 assert (
40 5 == 7
41 7 == 9
42 8 == 0
43 )
44 }
46 testing "casts" dir "./root" {
47 foo = 300:u8
48 }
50 proc empty() {
51 }
53 testing "foobar" dir "./root" {
54 }