Browse Source

Check warning for %es:0 in assmebler code

git-svn-id: trunk@19058 -
pierre 14 years ago
parent
commit
53d3d518fa
2 changed files with 18 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 17 0
      tests/webtbs/tw20035c.pp

+ 1 - 0
.gitattributes

@@ -11778,6 +11778,7 @@ tests/webtbs/tw2001.pp svneol=native#text/plain
 tests/webtbs/tw2002.pp svneol=native#text/plain
 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/tw20035c.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/tw20093.pp svneol=native#text/pascal
 tests/webtbs/tw20093a.pp svneol=native#text/pascal
 tests/webtbs/tw20093a.pp svneol=native#text/pascal

+ 17 - 0
tests/webtbs/tw20035c.pp

@@ -0,0 +1,17 @@
+{ %cpu=i386 }
+{ %fail }
+{ %opt=-Sew }
+{ %norun }
+program testasm;
+
+begin
+  {$asmmode intel}
+  asm
+    mov eax,es:[0]
+  end;
+  {$asmmode att}
+  asm
+    mov %es:0,%eax
+    mov %es:(0),%eax
+  end;
+end.