소스 검색

* test for mantis #32906 (already fixed in revision 37886)

git-svn-id: trunk@37892 -
Jonas Maebe 7 년 전
부모
커밋
118398a543
2개의 변경된 파일40개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      .gitattributes
  2. 39 0
      tests/webtbf/tw32906.pp

+ 1 - 0
.gitattributes

@@ -14313,6 +14313,7 @@ tests/webtbf/tw3253.pp svneol=native#text/plain
 tests/webtbf/tw32605.pp svneol=native#text/plain
 tests/webtbf/tw3267.pp svneol=native#text/plain
 tests/webtbf/tw3275.pp svneol=native#text/plain
+tests/webtbf/tw32906.pp svneol=native#text/plain
 tests/webtbf/tw3294.pp svneol=native#text/plain
 tests/webtbf/tw3331.pp svneol=native#text/plain
 tests/webtbf/tw3337.pp svneol=native#text/plain

+ 39 - 0
tests/webtbf/tw32906.pp

@@ -0,0 +1,39 @@
+{ %cpu=i386 }
+{ %fail }
+
+program Project1;
+
+{$mode delphi}
+{$ASMMODE INTEL}
+
+type
+  TA = class
+    b: integer;
+  end;
+
+procedure Test();
+  var
+    a: TA;
+    r: integer;
+
+  begin
+    a := TA.Create();
+    a.b := 5;
+
+    asm
+      CMP a.b, 7
+      JG @Bigger
+      MOV r, 1
+      JMP @Exit
+      @Bigger:
+      MOV r, 2
+      @Exit:
+    end [];
+
+    writeln(r);
+    readln();
+end;
+
+begin
+  Test();
+end.