ngraphs \
invalid-assign \
field-parameters \
- functions-as-parameters
+ functions-as-parameters \
+ shadow-qcc shadow-gmqcc
.PHONY: clean test
@$(VM) $< > $@/output
@diff $@/output $@/expected
+$(eval $(call maketest,shadow-qcc,qcc))
+shadow-qcc:
+ @$(VM) -vector '33 44 55' $< > $@/output
+ @diff $@/output $@/expected
+
+$(eval $(call maketest,shadow-gmqcc,gm))
+shadow-gmqcc:
+ @$(VM) -vector '33 44 55' $< > $@/output
+ @diff $@/output $@/expected
+
#######################################################################
obj:
mkdir obj
--- /dev/null
+void(string, string) print = #1;
+string(vector) vtos = #5;
+
+void(vector org) main = {
+ local vector org;
+ print(vtos(org), "\n");
+};
--- /dev/null
+void(string, string) print = #1;
+string(vector) vtos = #5;
+
+void(vector org) main = {
+ local vector org;
+ print(vtos(org), "\n");
+};