Mercurial > projects > dstress
changeset 1308:5931ebd6746b
[Issue 747] undefined reference to `.LDASM1'
Thomas K?hne <thomas-dloop@kuehne.cn>
2006-12-25
http://d.puremagic.com/issues/show_bug.cgi?id=747
author | thomask |
---|---|
date | Sun, 31 Dec 2006 02:01:18 +0000 |
parents | 071d5525be12 |
children | 72ecc3d71ef9 |
files | run/a/asm_jmp_02_A.d run/a/asm_jmp_02_B.d run/a/asm_jmp_02_C.d |
diffstat | 3 files changed, 91 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/asm_jmp_02_A.d Sun Dec 31 02:01:18 2006 +0000 @@ -0,0 +1,29 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kühne <thomas-dloop@kuehne.cn> +// @date@ 2006-12-25 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=747 +// @desc@ [Issue 747] undefined reference to `.LDASM1' + +module dstress.run.a.asm_jmp_02_A; + +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ + asm{ + jmp label; + } + label: + return 0; + } +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/asm_jmp_02_B.d Sun Dec 31 02:01:18 2006 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kühne <thomas-dloop@kuehne.cn> +// @date@ 2006-12-25 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=747 +// @desc@ [Issue 747] undefined reference to `.LDASM1' + +module dstress.run.a.asm_jmp_02_B; + +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ + asm{ + jmp label; + } + + assert(0); + label: + return 0; + } +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/asm_jmp_02_C.d Sun Dec 31 02:01:18 2006 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kühne <thomas-dloop@kuehne.cn> +// @date@ 2006-12-25 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=747 +// @desc@ [Issue 747] undefined reference to `.LDASM1' + +module dstress.run.a.asm_jmp_02_C; + +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ + asm{ + jmp label; + } + + return 1; + label: + return 0; + } +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}