comparison run/a/asm_setnc_01.d @ 1395:251a3e0d98f7

div. inline asm fixes
author thomask
date Thu, 08 Mar 2007 16:22:44 +0000
parents 7a397590d6e0
children
comparison
equal deleted inserted replaced
1394:25f3e72bf814 1395:251a3e0d98f7
2 // $Date$ 2 // $Date$
3 // $Author$ 3 // $Author$
4 4
5 module dstress.run.a.asm_setnc_01; 5 module dstress.run.a.asm_setnc_01;
6 6
7 int main(){ 7 version(D_InlineAsm_X86){
8 version(D_InlineAsm){ 8 version = test;
9 }else version(D_Inline_Asm_X86_64){
10 version = test;
11 }else{
12 static assert(0, "DSTRESS{XFAIL}: no inline x86 asm support");
13 }
14
15 version(test){
16 int main(){
9 ubyte a; 17 ubyte a;
10 18
11 a = a.max; 19 a = a.max;
12 20
13 asm{ 21 asm{
37 } 45 }
38 46
39 assert(a == 1); 47 assert(a == 1);
40 48
41 return 0; 49 return 0;
42 }else{
43 pragma(msg, "DSTRESS{XPASS}: no inline ASM support");
44 static assert(0);
45 } 50 }
46 } 51 }