Merge remote branch 'origin/master'
[binutils/dougsmingw.git] / ld / testsuite / ld-pe / direct2_client.c
blob84cdcb6250fbe34e086caff12774136102eb3500
1 extern void abort (void);
3 void
4 __cdecl
5 lib2foocdecl(int junk1, int* junk2);
7 void
8 __stdcall
9 lib2foostdcall(int junk1, int* junk2);
11 void
12 __fastcall
13 lib2foofastcall(int junk1, int* junk2);
15 void
16 __cdecl
17 lib1foocdecl(int junk1, int* junk2)
19 lib2foocdecl(junk1, junk2);
22 void
23 __stdcall
24 lib1foostdcall(int junk1, int* junk2)
26 lib2foostdcall(junk1, junk2);
29 void
30 __fastcall
31 lib1foofastcall(int junk1, int* junk2)
33 lib2foofastcall(junk1, junk2);
36 int main()
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 ();
45 return 0;