Fix warning in D test-suite

This commit is contained in:
William S Fulton 2022-03-28 19:30:47 +01:00
commit 0b15740663
3 changed files with 5 additions and 5 deletions

View file

@ -29,7 +29,7 @@ public class multiple_inheritance_overload_runme {
check(d1.AnotherMethod(i) != 0, "d1.AnotherMethod failed"); check(d1.AnotherMethod(i) != 0, "d1.AnotherMethod failed");
Base db1 = BaseSwigImpl.inout(d1); Base db1 = BaseSwigImpl.in_out(d1);
check(db1.Method(i) != 0, "db1.Method failed"); check(db1.Method(i) != 0, "db1.Method failed");
check(db1.MethodForRenaming(i) != 0, "db1.MethodForRenaming failed"); check(db1.MethodForRenaming(i) != 0, "db1.MethodForRenaming failed");
check(db1.MethodForRenamingConst(i) != 1, "db1.MethodForRenamingConst failed"); check(db1.MethodForRenamingConst(i) != 1, "db1.MethodForRenamingConst failed");
@ -47,7 +47,7 @@ public class multiple_inheritance_overload_runme {
check(m1.AnotherMethod(i) != 0, "m1.AnotherMethod failed"); check(m1.AnotherMethod(i) != 0, "m1.AnotherMethod failed");
Base mb2 = BaseSwigImpl.inout(m1); Base mb2 = BaseSwigImpl.in_out(m1);
check(mb2.Method(i) != 0, "mb2.Method failed"); check(mb2.Method(i) != 0, "mb2.Method failed");
check(mb2.MethodForRenaming(i) != 0, "mb2.MethodForRenaming failed"); check(mb2.MethodForRenaming(i) != 0, "mb2.MethodForRenaming failed");
check(mb2.MethodForRenamingConst(i) != 1, "mb2.MethodForRenamingConst failed"); check(mb2.MethodForRenamingConst(i) != 1, "mb2.MethodForRenamingConst failed");

View file

@ -36,7 +36,7 @@ public class multiple_inheritance_overload_runme {
check(d1.AnotherMethod(i) != 0, "d1.AnotherMethod failed"); check(d1.AnotherMethod(i) != 0, "d1.AnotherMethod failed");
Base db1 = BaseSwigImpl.inout(d1); Base db1 = BaseSwigImpl.in_out(d1);
check(db1.Method(i) != 0, "db1.Method failed"); check(db1.Method(i) != 0, "db1.Method failed");
check(db1.MethodForRenaming(i) != 0, "db1.MethodForRenaming failed"); check(db1.MethodForRenaming(i) != 0, "db1.MethodForRenaming failed");
check(db1.MethodForRenamingConst(i) != 1, "db1.MethodForRenamingConst failed"); check(db1.MethodForRenamingConst(i) != 1, "db1.MethodForRenamingConst failed");
@ -54,7 +54,7 @@ public class multiple_inheritance_overload_runme {
check(m1.AnotherMethod(i) != 0, "m1.AnotherMethod failed"); check(m1.AnotherMethod(i) != 0, "m1.AnotherMethod failed");
Base mb2 = BaseSwigImpl.inout(m1); Base mb2 = BaseSwigImpl.in_out(m1);
check(mb2.Method(i) != 0, "mb2.Method failed"); check(mb2.Method(i) != 0, "mb2.Method failed");
check(mb2.MethodForRenaming(i) != 0, "mb2.MethodForRenaming failed"); check(mb2.MethodForRenaming(i) != 0, "mb2.MethodForRenaming failed");
check(mb2.MethodForRenamingConst(i) != 1, "mb2.MethodForRenamingConst failed"); check(mb2.MethodForRenamingConst(i) != 1, "mb2.MethodForRenamingConst failed");

View file

@ -47,7 +47,7 @@ public:
virtual int SimilarOverloadedMethod(Integer i) { return 0; } virtual int SimilarOverloadedMethod(Integer i) { return 0; }
virtual int SimilarOverloadedMethod(unsigned short i) { return 1; } virtual int SimilarOverloadedMethod(unsigned short i) { return 1; }
virtual ~Base() {} virtual ~Base() {}
static Base *inout(Base *p) { return p; } static Base *in_out(Base *p) { return p; }
}; };
class Derived : public Base, public AnotherSpace::AnotherBase class Derived : public Base, public AnotherSpace::AnotherBase