From 9ba4cff079a1d6e386c3c43512a04e51d7c33cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Wed, 11 Feb 1998 01:56:34 +0100 Subject: [PATCH] Added one more test. Rev: src/testsuite.in:1.63 --- src/testsuite.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/testsuite.in b/src/testsuite.in index 5fae3d71ab..df2a935b0e 100644 --- a/src/testsuite.in +++ b/src/testsuite.in @@ -1,4 +1,4 @@ -test_true([["$Id: testsuite.in,v 1.62 1997/12/03 22:46:18 hubbe Exp $"]]) +test_true([["$Id: testsuite.in,v 1.63 1998/02/11 00:56:34 grubba Exp $"]]) test_eq(1e1,10.0) test_eq(1E1,10.0) test_eq(1e+1,10.0) @@ -19,6 +19,11 @@ class p2 { int foo() { return 3; }}; class c1 { inherit p1; inherit p2; int foo() { return p1::foo()+p2::foo(); }}; class c2 { inherit c1; }; return c2()->foo();]],4) +test_any([[ +class A { constant a=0; int foo() { return a; } }; +class B { inherit A; constant a=1; }; +return B()->foo(); ]], 1) + test_any([[ class p1 { int foo() { return 1; } }; class p2 { int foo() { return 2; } }; -- GitLab