fields1 \
invalid-types \
ngraphs \
- invalid-assign
+ invalid-assign \
+ field-parameters
.PHONY: clean test
invalid-assign: invalid-assign-ok
+$(eval $(call maketest,field-parameters,qcc))
+field-parameters:
+ @$(VM) $< > $@/output
+ @diff $@/output $@/expected
+
#######################################################################
obj:
mkdir obj
--- /dev/null
+void(string, string) print = #1;
+entity() spawn = #3;
+
+.string a;
+.string b;
+
+void(entity e, .string s) callout = {
+ print(e.s, "\n");
+};
+
+void() main = {
+ local entity e;
+ e = spawn();
+ e.a = "foo";
+ e.b = "bar";
+ callout(e, b);
+};