Mercurial > projects > dstress
annotate nocompile/a/asm_fnsave_02_I.d @ 1591:a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
version condition is missing, the result is XFAIL.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 28 Aug 2008 09:59:22 +0200 |
parents | 25f3e72bf814 |
children |
rev | line source |
---|---|
856 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
715 | 4 |
1591
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
5 // __DSTRESS_ELINE__ 22 |
715 | 6 |
7 module dstress.nocompile.a.asm_fnsave_02_I; | |
8 | |
1591
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
9 version(D_InlineAsm_X86){ |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
10 version = test; |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
11 }else version(D_Inline_Asm_X86_64){ |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
12 version = test; |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
13 }else{ |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
14 static assert(0, "DSTRESS{XFAIL}: no inline x86 asm support"); |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
15 } |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
16 |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
17 version(test){ |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
18 void main(){ |
715 | 19 double x; |
20 | |
21 asm{ | |
22 fnsave x; | |
23 } | |
24 } | |
1591
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
25 } |