comparison run/a/asm_05_B.d @ 1542:d8e1feb9e66e

[Issue 1152] Inline assembler: cannot use properties of types Matti Niemenmaa (Deewiant) <deewiant@gmail.com> 2007-05-31 http://d.puremagic.com/issues/show_bug.cgi?id=1152
author thomask
date Sun, 01 Jul 2007 13:19:07 +0000
parents
children
comparison
equal deleted inserted replaced
1541:fe62f80b7ea1 1542:d8e1feb9e66e
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Matti Niemenmaa (Deewiant) <deewiant@gmail.com>
6 // @date@ 2007-05-31
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1152
8 // @desc@ [Issue 1152] Inline assembler: cannot use properties of types
9
10 module dstress.run.a.asm_05_B;
11
12 version(D_InlineAsm_X86){
13 version = runTest;
14 }else version(D_InlineAsm_X86_64){
15 version = runTest;
16 }
17
18 version(runTest){
19 int main(){
20 int i = 1;
21
22 asm{
23 mov i, int.max;
24 }
25
26 if(0x7FFF_FFFF != i){
27 assert(0);
28 }
29
30 return 0;
31 }
32 }else{
33 static assert(0, "DSTRESS{XFAIL}: no inline x86 ASM support");
34 }