소스 검색

+ test

git-svn-id: trunk@13999 -
paul 15 년 전
부모
커밋
c2e749797b
2개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      .gitattributes
  2. 16 0
      tests/test/tassignmentoperator1.pp

+ 1 - 0
.gitattributes

@@ -8123,6 +8123,7 @@ tests/test/tarray6.pp svneol=native#text/plain
 tests/test/tarray7.pp svneol=native#text/plain
 tests/test/tarray7.pp svneol=native#text/plain
 tests/test/tasmread.pp svneol=native#text/plain
 tests/test/tasmread.pp svneol=native#text/plain
 tests/test/tasout.pp svneol=native#text/plain
 tests/test/tasout.pp svneol=native#text/plain
+tests/test/tassignmentoperator1.pp svneol=native#text/pascal
 tests/test/tbopr.pp svneol=native#text/plain
 tests/test/tbopr.pp svneol=native#text/plain
 tests/test/tbrtlevt.pp svneol=native#text/plain
 tests/test/tbrtlevt.pp svneol=native#text/plain
 tests/test/tcase1.pp svneol=native#text/plain
 tests/test/tcase1.pp svneol=native#text/plain

+ 16 - 0
tests/test/tassignmentoperator1.pp

@@ -0,0 +1,16 @@
+program tassignmentoperator1;
+
+{$mode objfpc}
+
+operator := (S1, S2: String): Integer;
+begin
+  Result := Length(S1);
+end;
+
+var
+  S: String;
+  V: Integer;
+begin
+  V := S;
+end.
+