summaryrefslogtreecommitdiff
path: root/tests/tbf
diff options
context:
space:
mode:
authornickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-03-09 21:05:53 +0000
committernickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-03-09 21:05:53 +0000
commit5c30204fd0c69b0ed12f71f397d2ed4b60162dc3 (patch)
tree808a0a9fa7b5be08cbd172dd0363ab8798000151 /tests/tbf
parent9017990d8e68b10a8c8f732829f49ab0c9bbd6eb (diff)
downloadfpc-5c30204fd0c69b0ed12f71f397d2ed4b60162dc3.tar.gz
* disallow 64-bit property index specifiers on 64-bit CPUs, since they were not
handled correctly there anyway (they were silently truncated to 32-bit) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@27061 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/tbf')
-rw-r--r--tests/tbf/tb0239.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/tbf/tb0239.pp b/tests/tbf/tb0239.pp
new file mode 100644
index 0000000000..0e133fb24c
--- /dev/null
+++ b/tests/tbf/tb0239.pp
@@ -0,0 +1,18 @@
+{ %FAIL }
+program tb0239;
+
+{$MODE objfpc}
+
+type
+ TMyClass = class
+ function GetMyProperty(Index: Integer): Integer;
+ property MyProperty: Integer index 10000000000000000 read GetMyProperty;
+ end;
+
+function TMyClass.GetMyProperty(Index: Integer): Integer;
+begin
+ Result := 10;
+end;
+
+begin
+end.