Mercurial > projects > dstress
view run/b/bug_tree_inline_1902_A.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | b6eb7f46f42c |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <llucax@gmail.com> // @date@ 2008-02-01 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1813 // @desc@ [Issue 1813] static function parametrized with alias used with delegate throws an internal compiler error. module dstress.run.b.bug_tree_inline_1902_A; template thunk(alias fn){ void thunk(int* arg){ fn(arg); } } int main(){ int x = 1; void inner(int* arg){ if(!(arg !is &x)){ assert(0); } } thunk!(inner)(&x); return 0; }