pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2003-04-02
2003-04-02 12:02:08 by Martin Stjernholm <mast@lysator.liu.se>
3c75f39e810a59173baac6e40d43578288cf6b60 (
25
lines) (+
24
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Document the handling of identity of nested programs.
Rev: src/testsuite.in:1.630
1:
-
test_true([["$Id: testsuite.in,v 1.
629
2003/
03
/
30
20
:
24
:
30
grubba
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
630
2003/
04
/
02
12
:
02
:
08
mast
Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]])
2675:
} ]])
+
// Identity of nested programs.
+
test_program([[
+
class A {int i; class X {int j;};}
+
class B {inherit A;}
+
int a() {return A()->X == B()->X;}
+
]])
+
test_program([[
+
class A {int i; class X {int j;};}
+
class B {inherit A;}
+
int a() {return A.X == B.X;}
+
]])
+
test_program([[
+
class A {int i; class X {int j = i;};}
+
class B {inherit A;}
+
int a() {return A()->X != B()->X;}
+
]])
+
test_program([[
+
class A {int i; class X {int j = i;};}
+
class B {inherit A;}
+
int a() {return A.X == B.X;}
+
]])
+
// Testing __INIT test_any([[ class X { int x = 1; };