fpc/tests/tbs/tb0613.pp
nickysn 4da9296f80 * disabled the name mangling of external non-cdecl and non-cppdecl procedures
that don't have an import name specified explicitly. The previous behaviour
  wasn't very useful, because it included the current module name in the mangled
  name and that was very unlikely to be the correct name of a routine in a
  different module. The new behaviour is also BP7 and Delphi compatible.

git-svn-id: trunk@32385 -
2015-11-20 23:14:53 +00:00

16 lines
240 B
ObjectPascal

procedure TestProc1; external;
procedure TestProc2; pascal; external;
procedure Ext_TestProc1; public name 'TestProc1';
begin
end;
procedure Ext_TestProc2; pascal; public name 'TestProc2';
begin
end;
begin
TestProc1;
TestProc2;
end.