Files @ 8622657b70f9
Branch filter:

Location: CSY/reowolf/testdata/parser/negative/8.pdl - annotation

MH
Add ctor/dtor tests to MPSC queue

Now also testing that resources are properly moved and/or bitwise
copied inside of the MPSC queue. To make this possible the Resource
testing struct was moved outside of the store::component::tests
module.
#version 100

import std.reo;

composite main(in a, out b) {
	channel c -> d;
	syncdrain(a, b);
}

// shadowing import
primitive syncdrain(in a, in b) {
	while (true) {
		sync {
			if (!fires(a) || !fires(b)) {
				block(a);
				block(b);
			}
		}
	}
}