diff --git a/testdata/basic/testing.pdl b/testdata/basic/testing.pdl new file mode 100644 index 0000000000000000000000000000000000000000..af02505f5fbca31617368760f4b7727e70ec8e49 --- /dev/null +++ b/testdata/basic/testing.pdl @@ -0,0 +1,23 @@ +primitive consumer(in input) { + sync { + print("C: going to receive a value"); + auto v = get(input); + print("C: I have received a value"); + } + print("C: I am now exiting"); +} + +primitive producer(out output) { + sync { + print("P: Going to send a value!"); + put(output, 1337); + print("P: I just sent a value!"); + } + print("P: I am exiting"); +} + +composite main() { + channel output -> input; + new consumer(input); + new producer(output); +} \ No newline at end of file