added test cases
[fleet.git] / tests / icache / icache-test.fleet
1 // expected output
2 #expect 12
3 #expect 13
4 #expect 14
5
6 // ships required in order to run this code
7 #ship debug        : Debug
8 #ship iscratch       : Iscratch
9
10 // instructions not in any codebag are part of the "root codebag"
11 // which is dispatched when the code is loaded
12
13 BOB:          sendto iscratch.cbd;
14 iscratch.cbd:   [*] take, deliver;
15 debug.data:   [*] take, deliver;
16
17
18 // This codebag illustrates how to do a loop.  Notice that this
19 // is actually an uncontrolled data emitter -- it could clog the
20 //  switch fabric!
21
22 BOB: {
23   12:           sendto debug.data;
24   13:           sendto debug.data;
25   14:           sendto debug.data;
26 }
27