pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2017-09-10
2017-09-10 11:20:46 by Marcus Comstedt <marcus@mc.pp.se>
d1feb13c8430a866f30477364ca3c97e554ea579 (
11
lines) (+
11
/-
0
)
[
Show
|
Annotate
]
Branch:
marcus/short_func
Compiler: Add support for abbreviated function definitions
3247:
} ]])
+
test_any([[
+
class X {
+
int add(int a, int b) = a + b;
+
string `id() = "foo";
+
void print(string s) = (void)write(s);
+
};
+
X x = X();
+
return x->add(3,4)==7 && x->id == "foo";
+
]], 1)
+
test_any([[string gurk="bozo"; string b(int x) { return (x?b(x-1)+gurk:""); }; return b(5)]],[["bozo"*5]]) dnl this should really work...