Update year range in copyright notice of binutils files
[deliverable/binutils-gdb.git] / ld / testsuite / ld-pe / direct2_client.c
CommitLineData
8a9eab9b
KT
1extern void abort (void);
2
3void
4__cdecl
5lib2foocdecl(int junk1, int* junk2);
6
7void
8__stdcall
9lib2foostdcall(int junk1, int* junk2);
10
11void
12__fastcall
13lib2foofastcall(int junk1, int* junk2);
14
15void
16__cdecl
17lib1foocdecl(int junk1, int* junk2)
18{
19 lib2foocdecl(junk1, junk2);
20}
21
22void
23__stdcall
24lib1foostdcall(int junk1, int* junk2)
25{
26 lib2foostdcall(junk1, junk2);
27}
28
29void
30__fastcall
31lib1foofastcall(int junk1, int* junk2)
32{
33 lib2foofastcall(junk1, junk2);
34}
35
36int main()
37{
38 int junk[3];
39 lib1foofastcall (1, &junk[0]);
40 lib1foostdcall (2, &junk[1]);
41 lib1foocdecl (3, &junk[2]);
42 if (junk[1] != 2 || junk[0] != 1 || junk[2] != 3)
43 abort ();
44
45 return 0;
46}
47
This page took 0.377365 seconds and 4 git commands to generate.