pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
1997-05-22
1997-05-22 23:27:33 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
fcb80484487eadfcdf700940de65cc6e23fa3099 (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
return on void expressions now gives an error
Rev: src/las.c:1.34
Rev: src/testsuite.in:1.43
1:
-
test_true([["$Id: testsuite.in,v 1.
42
1997/05/
20
01
:
06
:
45
hubbe Exp $"]])
+
test_true([["$Id: testsuite.in,v 1.
43
1997/05/
22
23
:
27
:
33
hubbe Exp $"]])
test_eq(1e1,10.0) test_eq(1E1,10.0) test_eq(1e+1,10.0) test_eq(1.1e1,11.0) test_eq(1e-1,0.1)
-
+
test_compile_error([[void foo() { return destruct(this_object()); }]])
test_any([[class foo { constant x=17; }; class bar { inherit foo; constant x=18; }; return bar()->x;]],18) test_program([[inline string foo(string s){ while(s[0] == ' ' || s[0] == '\t') s = s[1..]; return(s); } string a() { return foo(" bar"); }]]) test_true([[lambda(function f) {return 1;}(object_program(this_object()));]])