1442
|
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_B;
|
|
11
|
|
12 extern(Pascal) long foo(int a, int b){
|
|
13 return (a + 1) * b;
|
|
14 }
|
|
15
|
|
16 extern(Pascal) 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 }
|