Mercurial > projects > dstress
annotate run/o/overload_27_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 | daef239f37cf |
children |
rev | line source |
---|---|
1188
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
2 // $Date$ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
3 // $Author$ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
4 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
5 // @author@ Frank Benoit <benoit@tionex.de> |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
6 // @date@ 2006-10-09 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1188
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=412 |
1188
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 412] New: overloaded function resolution with null parameter |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
9 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
10 module dstress.o.overload_27_A; |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
11 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
12 typedef char[] T; |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
13 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
14 void foo(char[] a, char[] b){ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
15 } |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
16 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
17 void foo(char[] c, T d){ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
18 assert(0); |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
19 } |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
20 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
21 int main(){ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
22 foo("", ""); |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
23 return 0; |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
24 } |