pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1000:    private mixed e = a();    private local mixed f = b();    this_program get_b() { return this_program::this; }    };    class C {    inherit B;    this_program get_c() { return this_program::this; }    };    class D {    inherit C; -  this_program get_d() { return this_program::this; } +  this_program get_d() { return this::this; }    };    object(D) d = D();    return ({ "A", sort(indices(d->get_a())),    "B", sort(indices(d->get_b())),    "C", sort(indices(d->get_c())),    "D", sort(indices(d->get_d())) });   ]], ({ "A", ({ "a", "b", "c", "d", "e", "f", "get_a" }),    "B", ({ "get_a", "get_b" }),    "C", ({ "get_a", "get_b", "get_c" }),    "D", ({ "get_a", "get_b", "get_c", "get_d" }) }))
pike.git/src/testsuite.in:11870:   test_true([[typeof(this_program) == typeof(object_program(this_object()))]])   test_true([[typeof(this_program) == typeof(object_program(global::this))]])      test_program_eq([[    string _sprintf() {return "g";}    class A {    string _sprintf() {return "A";}    class B {    string _sprintf() {return "B";}    mixed f() { -  return sprintf ("%O%O%O%O%O", -  global::this, A::this, B::this, this_program::this, this); +  return sprintf ("%O%O%O%O%O%O", +  global::this, A::this, B::this, this_program::this, this::this, this);    }    }    }    string a() {return A()->B()->f();} - ]], "gABBB") + ]], "gABBBB")      test_program_eq([[    string _sprintf() {return "g";}    class A {    string _sprintf() {return "A";}    class B {    string _sprintf() {return "B";}    mixed f() {    return sprintf ("%O%O%O%O",    this_object (2), this_object (1), this_object (0), this_object());
pike.git/src/testsuite.in:11916:    string a() {return A()->B()->f();}   ]], "gAB")      test_program_eq([[    string _sprintf() {return "g";}    class A {    string _sprintf() {return "A";}    class B {    string _sprintf() {return "B";}    mixed f() { -  return sprintf ("%O%O%O%O%O", -  global::this, A::this, B::this, this_program::this, this); +  return sprintf ("%O%O%O%O%O%O", +  global::this, A::this, B::this, this_program::this, this::this, this);    }    }    constant this = 7;    }    string a() {return A()->B()->f();} - ]], "g7BB7") + ]], "g7BBB7")      test_compile_error([[    this = 17;   ]])      test_compile_error([[    class A {    class B {    void f() {A::this = 17;}    }