Mercurial > projects > dstress
view run/o/odd_bug_04_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 | 20d8ee6523e1 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ John Demme <me@teqdruid.com> // @date@ 2005-12-05 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5755 module dstress.run.o.odd_bug_04_A; abstract class Container(V) { abstract int opApply(int delegate(ref V) dg); } abstract class MutableList(V): Container!(V) { abstract MutableList insertBefore(int i, V item); abstract MutableList append(V item); abstract MutableList append(Container!(V) items); } class AbstractMutableList(V): MutableList!(V) { MutableList!(V) prepend(Container!(V) items) { foreach(V item; items) { insertBefore(0, item); } return this; } } class CommandLine { AbstractMutableList!(int) paramList; } int main(){ test1(); test2(); return 0; } void test1(){ void testBoolParam() { try { throw new Exception( "uups" ); } catch (Exception o) { } } testBoolParam(); } void test2(){ void testBoolParam() { try { throw new Exception( "uups" ); } catch (Exception o) { } } testBoolParam(); }