Branch: Tag:

2003-04-02

2003-04-02 12:02:08 by Martin Stjernholm <mast@lysator.liu.se>

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; };