Browse Source

+ Test for bug report 20093

git-svn-id: trunk@18892 -
pierre 14 years ago
parent
commit
70dfb89620
4 changed files with 52 additions and 0 deletions
  1. 3 0
      .gitattributes
  2. 19 0
      tests/webtbs/tw20093.pp
  3. 15 0
      tests/webtbs/uvmt.pp
  4. 15 0
      tests/webtbs/uvmt_a.pp

+ 3 - 0
.gitattributes

@@ -11754,6 +11754,7 @@ tests/webtbs/tw2002.pp svneol=native#text/plain
 tests/webtbs/tw20035a.pp svneol=native#text/pascal
 tests/webtbs/tw20035a.pp svneol=native#text/pascal
 tests/webtbs/tw20035b.pp svneol=native#text/pascal
 tests/webtbs/tw20035b.pp svneol=native#text/pascal
 tests/webtbs/tw2004.pp svneol=native#text/plain
 tests/webtbs/tw2004.pp svneol=native#text/plain
+tests/webtbs/tw20093.pp svneol=native#text/pascal
 tests/webtbs/tw2028.pp svneol=native#text/plain
 tests/webtbs/tw2028.pp svneol=native#text/plain
 tests/webtbs/tw2030.pp svneol=native#text/plain
 tests/webtbs/tw2030.pp svneol=native#text/plain
 tests/webtbs/tw2031.pp svneol=native#text/plain
 tests/webtbs/tw2031.pp svneol=native#text/plain
@@ -12544,6 +12545,8 @@ tests/webtbs/tw9985.pp svneol=native#text/plain
 tests/webtbs/tw9985a.pp svneol=native#text/plain
 tests/webtbs/tw9985a.pp svneol=native#text/plain
 tests/webtbs/ub1873.pp svneol=native#text/plain
 tests/webtbs/ub1873.pp svneol=native#text/plain
 tests/webtbs/ub1883.pp svneol=native#text/plain
 tests/webtbs/ub1883.pp svneol=native#text/plain
+tests/webtbs/uvmt.pp svneol=native#text/pascal
+tests/webtbs/uvmt_a.pp svneol=native#text/pascal
 tests/webtbs/uw0555.pp svneol=native#text/plain
 tests/webtbs/uw0555.pp svneol=native#text/plain
 tests/webtbs/uw0701c.pp svneol=native#text/plain
 tests/webtbs/uw0701c.pp svneol=native#text/plain
 tests/webtbs/uw0701d.pp svneol=native#text/plain
 tests/webtbs/uw0701d.pp svneol=native#text/plain

+ 19 - 0
tests/webtbs/tw20093.pp

@@ -0,0 +1,19 @@
+{ Test for bug report 20093
+  Reported 2011-08-29
+  a_tclass in unit uvmt
+  and tclass in unit uvmt_a
+  both generate the same symbol name for the VMT
+  }
+
+uses
+  uvmt, uvmt_a;
+
+var
+  a1 : tclass;
+  a2 : a_tclass;
+begin
+  a1 := tclass.create;
+  a2 := a_tclass.create;
+  a1.destroy;
+  a2.destroy;
+end.

+ 15 - 0
tests/webtbs/uvmt.pp

@@ -0,0 +1,15 @@
+{ OPT=-gw }
+
+unit uvmt;
+
+{$mode objfpc}
+
+interface
+
+type
+  a_tclass = class (tobject)
+    x : integer;
+  end;
+implementation
+
+end.

+ 15 - 0
tests/webtbs/uvmt_a.pp

@@ -0,0 +1,15 @@
+{ OPT=-gw }
+
+unit uvmt_a;
+
+{$mode objfpc}
+
+interface
+
+type
+  tclass = class (tobject)
+    x : integer;
+  end;
+implementation
+
+end.