Mercurial > projects > dstress
view run/e/extern_10_E.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 | bfebb405f3ed |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Thomas Kühne <thomas-dloop@kuehne.cn> // @date@ 2007-02-13 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=957 // @desc@ [Issue 957] linkage attributes for function level declarations are ignored module dstress.run.e.extern_10_E; extern(D) long foo(int a, int b){ return (a + 1) * b; } int main(){ extern(D) long function(int, int) bar; bar = &foo; if(20 != bar(3, 5)){ assert(0); } return 0; }