commit d7b37ceab4f50fe0bdc822a71faed1ee86012bda from: Omar Polo date: Fri Aug 06 20:02:13 2021 UTC messing around commit - 9820edbf3bb79318ceea2da98db9d858ba9dfc27 commit + d7b37ceab4f50fe0bdc822a71faed1ee86012bda blob - 3ca4d246298d5e73ec8b7826dbbe4ecf4ff83dea blob + feb818b939bbabc724d41d26f1fa77479299fe14 --- regress/sample.9ps +++ regress/sample.9ps @@ -1,5 +1,7 @@ +# default protocol version const npversion = "9P2000" +# some constants const ( one = 1:u8 two = 2 @@ -9,17 +11,28 @@ const ( n = 4 ) +proc unreachable(qid) { # and useless + type = qid.type + assert ( + type == qid.type + ) +} + proc test(x) { skip() } -proc myprint(...) { +proc myrealprint(...) { print(...) } +proc myprint(...) { + myrealprint(...) +} + testing "skip called in proc" dir "./root" { foo = 5:u8 - print("hello", "foo is", foo) + myprint("hello", "foo is", foo) test(3:u32) assert 1 == 0 @@ -33,3 +46,9 @@ testing "skip called in proc" dir "./root" { testing "casts" dir "./root" { foo = 300:u8 } + +proc empty() { +} + +testing "foobar" dir "./root" { +}