annotate run/m/mixin_27_B.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 176afd3d6d8e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1400
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
1 // $HeadURL$
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
2 // $Date$
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
3 // $Author$
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
4
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
5 // @author@ Tomas Lindquist Olsen <tomas@famolsen.dk>
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
6 // @date@ 2007-03-05
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1025
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
8 // @desc@ [Issue 1025] mixin("scope(exit) call();"); is broken
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
9
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
10 module dstress.run.m.mixin_27_B;
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
11
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
12 int status;
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
13
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
14 void test(){
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
15 mixin("status += 1;");
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
16 mixin("scope(success) status *= 2;");
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
17 mixin("status += 5;");
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
18 }
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
19
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
20 int main(){
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
21 test();
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
22 if(12 != status){
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
23 assert(0);
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
24 }
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
25 return 0;
176afd3d6d8e [Issue 1025] mixin("scope(exit) call();"); is broken
thomask
parents:
diff changeset
26 }