Răsfoiți Sursa

* test for copying of typenode

git-svn-id: trunk@5081 -
peter 19 ani în urmă
părinte
comite
e70355cb57
2 a modificat fișierele cu 15 adăugiri și 0 ștergeri
  1. 1 0
      .gitattributes
  2. 14 0
      tests/webtbs/tw7679.pp

+ 1 - 0
.gitattributes

@@ -7570,6 +7570,7 @@ tests/webtbs/tw7527.pp svneol=native#text/plain
 tests/webtbs/tw7567.pp svneol=native#text/plain
 tests/webtbs/tw7568.pp svneol=native#text/plain
 tests/webtbs/tw7637.pp svneol=native#text/plain
+tests/webtbs/tw7679.pp svneol=native#text/plain
 tests/webtbs/ub1873.pp svneol=native#text/plain
 tests/webtbs/ub1883.pp svneol=native#text/plain
 tests/webtbs/uw0555.pp svneol=native#text/plain

+ 14 - 0
tests/webtbs/tw7679.pp

@@ -0,0 +1,14 @@
+{$mode objfpc}
+{$h+}
+uses
+  TypInfo;
+type
+  Enum = (a, b, c);
+var
+  S : string;
+begin
+  S := 'Text';
+  S := S + 'xyz' + GetEnumName(TypeInfo(Enum), 1); // This line generate error
+  S := 'xyz' + GetEnumName(TypeInfo(Enum), 1); // This line is OK!
+end.
+