Mercurial > projects > dstress
view run/e/extern_11_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 | 46ba0b9746f3 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.e.extern_11_A; version(Windows){ extern(Windows) int test(int a, int b){ return (a * 2) + b; } }else{ extern(C) int test(int a, int b){ return (a * 2) + b; } } extern(System) int function(int, int) foo = &test; int main(){ if(11 != foo(3, 5)){ assert(0); } return 0; }