Mercurial > projects > dstress
annotate norun/a/asm_hlt_01.d @ 1392:275d8482722d
div. inline asm fixes
author | thomask |
---|---|
date | Thu, 08 Mar 2007 16:21:09 +0000 |
parents | 731f93c13ad6 |
children |
rev | line source |
---|---|
975 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.norun.a.asm_hlt_01; | |
6 | |
1010 | 7 version(D_InlineAsm_X86){ |
8 version = runTest; | |
9 }else version(D_InlineAsm_X86_64){ | |
10 version = runTest; | |
11 } | |
12 | |
13 version(runTest){ | |
14 int main(){ | |
975 | 15 asm{ |
16 hlt; | |
17 } | |
18 | |
19 return 0; | |
20 } | |
1010 | 21 }else{ |
1392 | 22 pragma(msg, "DSTRESS{XFAIL}: no inline x86 asm support"); |
1010 | 23 static assert(0); |
975 | 24 } |