--- /dev/null
+void(string, ...) print = #1;
+string(float) ftos = #2;
+
+float(float x, float y, float z) sum = {
+ return x + y + z;
+};
+
+void(float a, float b, float c) main = {
+ local float f;
+ f = sum(sum(a, sum(a, b, c), c),
+ sum(sum(sum(a, b, c), b, sum(a, b, c)), b, sum(a, b, sum(a, b, c))),
+ sum(sum(a, b, c), b, c));
+ print(ftos(f), "\n");
+};
--- /dev/null
+void(string, ...) print = #1;
+string(float) ftos = #2;
+
+void(float a, float b) main = {
+ if (a == b) print("eq,");
+ if (a != b) print("ne,");
+ if (a > b) print("gt,");
+ if (a < b) print("lt,");
+ if (a >= b) print("ge,");
+ if (a <= b) print("le,");
+};
--- /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);
+};
--- /dev/null
+I: fieldparams.qc
+D: test field paramaters
+T: -execute
+C: -std=qcc
+E: $null
+F: field paramaters fail
+S: field paramaters work
+M: bar