1 2# Normal export of a cdecl function 3 @ cdecl CdeclFunc0() 4 @ cdecl CdeclFunc1(ptr) 5 6# Redirected cdecl function 7 @ cdecl CdeclFunc2() CdeclFunc1 8 @ cdecl CdeclFunc3() dllexport_test_dll2.CdeclFunc1 9 10# Normal export of a stdcall function 11 @ stdcall StdcallFunc0() 12 @ stdcall StdcallFunc1(ptr) 13 14# Decorated export of a stdcall function 15 @ stdcall _StdcallFunc1@4(ptr) 16 @ stdcall -arch=i386 _DecoratedStdcallFunc1@4(ptr) 17 18# Redirected stdcall function 19 @ stdcall StdcallFunc2(ptr) StdcallFunc1 20 @ stdcall StdcallFunc3(ptr) dllexport_test_dll2.StdcallFunc1 21 @ stdcall -arch=i386 StdcallFunc4(ptr) _DecoratedStdcallFunc1@4 22 @ stdcall StdcallFunc5(ptr) dllexport_test_dll2._DecoratedStdcallFunc1@4 23 @ stdcall -arch=i386 _DecoratedStdcallFunc2@4(ptr) StdcallFunc1 24; @ stdcall -arch=i386 _DecoratedStdcallFunc3@4(ptr) dllexport_test_dll2.StdcallFunc1 # This doesn't work with MSVC! 25 @ stdcall -arch=i386 _DecoratedStdcallFunc4@4(ptr) _DecoratedStdcallFunc1@4 26 @ stdcall -arch=i386 _DecoratedStdcallFunc5@4(ptr) dllexport_test_dll2._DecoratedStdcallFunc1@4 27 28# Normal export of a fastcall function 29 @ fastcall FastcallFunc0() 30 @ fastcall FastcallFunc1(ptr) 31 32# Decorated export of a fastcall function 33 @ fastcall -arch=i386 @DecoratedFastcallFunc1@4(ptr) 34 35# Redirected fastcall function 36 @ fastcall FastcallFunc2(ptr) FastcallFunc1 37 @ fastcall FastcallFunc3(ptr) dllexport_test_dll2.FastcallFunc1 38 @ fastcall -arch=i386 FastcallFunc4(ptr) @DecoratedFastcallFunc1@4 39 @ fastcall -arch=i386 FastcallFunc5(ptr) dllexport_test_dll2.@DecoratedFastcallFunc1@4 40 41 @ fastcall -arch=i386 @DecoratedFastcallFunc2@4(ptr) FastcallFunc1 42; @ fastcall -arch=i386 @DecoratedFastcallFunc3@4(ptr) dllexport_test_dll2.FastcallFunc1 # This doesn't work with MSVC! 43 @ fastcall -arch=i386 @DecoratedFastcallFunc4@4(ptr) @DecoratedFastcallFunc1@4 44 @ fastcall -arch=i386 @DecoratedFastcallFunc5@4(ptr) dllexport_test_dll2.@DecoratedFastcallFunc1@4 45 46# Normal export of data 47 @ extern DataItem1 48 49# Redirected data 50 @ extern DataItem2 DataItem1 51 @ extern DataItem3 dllexport_test_dll2.DataItem1 52 53# other stuff 54 123 stdcall @(ptr) ExportByOrdinal1 55 218 stdcall -noname ExportByOrdinal1(ptr) 56