diff options
author | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-09-13 16:21:31 +0000 |
---|---|---|
committer | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-09-13 16:21:31 +0000 |
commit | fc8ab120b6ab5fb2a17b20f1f53f4f3ecd56fe22 (patch) | |
tree | 89c89312a79f79be026112c096a7504457925103 | |
parent | d2b036d24960d97c69c5bba4deed1a603331c435 (diff) | |
download | fpc-fc8ab120b6ab5fb2a17b20f1f53f4f3ecd56fe22.tar.gz |
Check warning for %es:0 in assmebler code
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19058 3ad0048d-3df7-0310-abae-a5850022a9f2
-rwxr-xr-x | tests/webtbs/tw20035c.pp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/webtbs/tw20035c.pp b/tests/webtbs/tw20035c.pp new file mode 100755 index 0000000000..78e7afb2ed --- /dev/null +++ b/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. |