blob: 0c0b6581e939eecfa5b6d2849131c90f16301d3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ Test the C++ class renaming }
program tcppcl2;
{$mode objfpc}
{$L cpptcl2.o}
type
TestClass = cppclass external
public
class procedure TestProc;
end;
TestClass2 = cppclass external name 'testclass'
public
class procedure TestProc;
end;
begin
try
TestClass.TestProc;
TestClass2.TestProc;
except
ExitCode := 1;
writeln('error');
end;
end.
|