Mercurial > projects > dstress
annotate compile/e/enum_48_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 | daef239f37cf |
children |
rev | line source |
---|---|
1147
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
2 // $Date$ |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
3 // $Author$ |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
4 |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
5 // @author@ Stewart Gordon <smjg@iname.com> |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
6 // @date@ 2006-09-15 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1147
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=349 |
1147
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 349] New: Function matching with enums is erratic |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
9 |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
10 module dstress.compile.e.enum_48_B; |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
11 |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
12 enum E : uint{ |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
13 A = 1 |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
14 } |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
15 |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
16 template T(uint a){ |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
17 const uint T = a + 1; |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
18 } |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
19 |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
20 template T(E e){ |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
21 const E T = e; |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
22 } |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
23 |
90cf22616882
[Issue 349] New: Function matching with enums is erratic
thomask
parents:
diff
changeset
|
24 static assert(T!(1u) == 2); |