annotate run/s/scope_15_A.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 1ee9a0dd42d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1158
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
1 // $HeadURL$
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
2 // $Date$
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
3 // $Author$
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
4
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
5 // @author@ <shro8822@uidaho.edu>
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
6 // @date@ 2006-09-25
1488
1ee9a0dd42d9 changed nntp: URLs to http: URLs
thomask
parents: 1158
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=8480
1158
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
8 // @desc@ [Issue 315] Exception handling is broken for delegates on Linux
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
9
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
10 module dstress.run.s.scope_15_A;
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
11
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
12 int status;
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
13
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
14 void foo(){
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
15 {
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
16 scope(exit) status += 1;
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
17 }
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
18
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
19 scope(exit) status *= 10;
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
20 }
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
21
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
22 int main(){
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
23 status = 2;
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
24 foo();
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
25
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
26 if(status != 30){
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
27 assert(0);
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
28 }
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
29
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
30 return 0;
dadbd7f099b7 [Issue 315] Exception handling is broken for delegates on Linux
thomask
parents:
diff changeset
31 }