summaryrefslogtreecommitdiff
path: root/tests/test/tthlp15.pp
diff options
context:
space:
mode:
authorsvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-02-16 12:58:24 +0000
committersvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-02-16 12:58:24 +0000
commit12d0bfb6496b6ad7b0d4e46b9dce685b31bbcc37 (patch)
treefb12e89506c48f71319598f1307b91810d237e17 /tests/test/tthlp15.pp
parentd4ceb89e3341f01e9f083f09ed83a50b0c14b5ae (diff)
downloadfpc-12d0bfb6496b6ad7b0d4e46b9dce685b31bbcc37.tar.gz
Add a modeswitch for type helpers as discussed in core on 24th October 2013. It is disabled by default in all modes (afterall type helper support in Delphi started only beginning with XE3)
+ globtype.pas: add new modeswitch to modeswitch enum and name array * ptype.pas & pdecobj.pas: check for new modeswitch instead of modeswitch class * ppu.pas: increase ppu version as we've added a new modeswitch which requires correctly compiled units * adjusted tests to enabled the modeswitch when necessary + added three new tests that check for correct functionality of modeswitch typehelpers git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@26796 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/test/tthlp15.pp')
-rw-r--r--tests/test/tthlp15.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test/tthlp15.pp b/tests/test/tthlp15.pp
index afb20f1520..4d62cf9482 100644
--- a/tests/test/tthlp15.pp
+++ b/tests/test/tthlp15.pp
@@ -5,6 +5,7 @@
program tthlp15;
{$mode objfpc}
+{$modeswitch typehelpers}
type
TLongIntHelper = type helper for LongInt