annotate compile/extern_07.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 b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
201
96fb902700fe casting function pointers
thomask
parents:
diff changeset
1 // $HeadURL$
96fb902700fe casting function pointers
thomask
parents:
diff changeset
2 // $Date$
96fb902700fe casting function pointers
thomask
parents:
diff changeset
3 // $Author$
96fb902700fe casting function pointers
thomask
parents:
diff changeset
4
96fb902700fe casting function pointers
thomask
parents:
diff changeset
5 // @author@ Russ Lewis <spamhole-2001-07-16@deming-os.org>
96fb902700fe casting function pointers
thomask
parents:
diff changeset
6 // @date@ 2004-12-14
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1385
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2566
1385
62c9b99c3a16 meta cleanup
thomask
parents: 201
diff changeset
8 // @uri@ nntp://news.digitalmars.com/digitalmars.D.bugs:2556
201
96fb902700fe casting function pointers
thomask
parents:
diff changeset
9
96fb902700fe casting function pointers
thomask
parents:
diff changeset
10 module dstress.compile.extern_07;
96fb902700fe casting function pointers
thomask
parents:
diff changeset
11
96fb902700fe casting function pointers
thomask
parents:
diff changeset
12 extern(C) void *wglGetProcAddress(char*);
96fb902700fe casting function pointers
thomask
parents:
diff changeset
13 extern(C) int function() glFunctionFoo;
96fb902700fe casting function pointers
thomask
parents:
diff changeset
14
96fb902700fe casting function pointers
thomask
parents:
diff changeset
15 int main(){
96fb902700fe casting function pointers
thomask
parents:
diff changeset
16 glFunctionFoo = cast(extern(C) int function()) wglGetProcAddress("glFunctionFoo");
96fb902700fe casting function pointers
thomask
parents:
diff changeset
17 return 0;
96fb902700fe casting function pointers
thomask
parents:
diff changeset
18 }
96fb902700fe casting function pointers
thomask
parents:
diff changeset
19
96fb902700fe casting function pointers
thomask
parents:
diff changeset
20