comparison run/e/extern_10_F.d @ 1442:bfebb405f3ed

r7390@birke: tk | 2007-03-29 16:07:56 +0200 [Issue 957] linkage attributes for function level declarations are ignored Thomas K?hne <thomas-dloop@kuehne.cn> 2007-02-13 http://d.puremagic.com/issues/show_bug.cgi?id=957
author thomask
date Sat, 31 Mar 2007 08:26:20 +0000
parents
children
comparison
equal deleted inserted replaced
1441:8888892dd50e 1442:bfebb405f3ed
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Thomas Kühne <thomas-dloop@kuehne.cn>
6 // @date@ 2007-02-13
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=957
8 // @desc@ [Issue 957] linkage attributes for function level declarations are ignored
9
10 module dstress.run.e.extern_10_F;
11
12 extern(D) long foo(int a, int b){
13 return (a + 1) * b;
14 }
15
16 extern(D) long function(int, int) bar;
17
18 int main(){
19 bar = &foo;
20
21 if(20 != bar(3, 5)){
22 assert(0);
23 }
24
25 return 0;
26 }