pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:12725:
test_define_program(test2,[[int z,x,c,v,b; mixed getb() { return b; } void setb(int _) { b=_; }]]) test_program(inherit test; inherit test2; mixed a() { w=20; b=22; return getw()==20 && getb()==22; }) test_program(inherit test; inherit test2; mixed a() { setw(20); setb(22); return w==20 && b==22; }) test_program(inherit test2; inherit test; mixed a() { w=20; b=22; return getw()==20 && getb()==22; }) test_program(inherit test2; inherit test; mixed a() { setw(20); setb(22); return w==20 && b==22; }) test_do(add_constant("test")) test_do(add_constant("test2"))
-
test_eval_error(return class c{int i;void foo(){ destruct(this_object());i=0;return i;}}()->foo())
+
test_eval_error(return class
{int i;void foo(){ destruct(this_object());i=0;return i;}}()->foo())
+
test_compile_error(return class
c{int i;void foo(){ destruct(this_object());i=0;return i;}}()->foo())
test_eq(a,this_object()->a) // - catch test_false([[class X { string test(string foo) { catch { return lower_case(foo); }; return foo; }}()->test(0); ]]) test_true([[catch (1.0 / 0.0)]]) test_true([[catch {float f = 1.0 / 0.0;}]]) // Pike modules