annotate compile/c/const_44_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 aaf99ec76365
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1414
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
1 // $HeadURL$
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
2 // $Date$
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
3 // $Author$
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
4
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
5 // @author@ torhu <fake@address.dude>
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
6 // @date@ 2007-02-15
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
7 // @uri@ http://www.digitalmars.com/webnews/newsgroups.php?search_txt=&group=digitalmars.D&article_id=48845
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
8 // @desc@ Re: Compile time function execution...
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
9
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
10 module dstress.compile.c.const_44_A;
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
11
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
12 int square(int x){
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
13 return x * x;
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
14 }
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
15
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
16 const int foo = square(5);
aaf99ec76365 Re: Compile time function execution...
thomask
parents:
diff changeset
17 static assert(25 == foo);