summaryrefslogtreecommitdiff
path: root/tests/test/terecs12a.pp
diff options
context:
space:
mode:
authorpaul <paul@3ad0048d-3df7-0310-abae-a5850022a9f2>2013-01-17 09:05:59 +0000
committerpaul <paul@3ad0048d-3df7-0310-abae-a5850022a9f2>2013-01-17 09:05:59 +0000
commit49cf7196e1f91521eb69d305975be37e07857b86 (patch)
treea17faf9ff5858634a8d8176643409301b0d9ed15 /tests/test/terecs12a.pp
parenta50f17accf7ac543d2689aeb47a05c4ed2b94dae (diff)
downloadfpc-49cf7196e1f91521eb69d305975be37e07857b86.tar.gz
compiler: don't allow constants, methods, class members and properties for local or anonymous records (fixes bug #0023000)
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@23421 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/test/terecs12a.pp')
-rw-r--r--tests/test/terecs12a.pp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test/terecs12a.pp b/tests/test/terecs12a.pp
new file mode 100644
index 0000000000..9857bedd73
--- /dev/null
+++ b/tests/test/terecs12a.pp
@@ -0,0 +1,19 @@
+{ %FAIL }
+{ %NORUN }
+program terecs12a;
+
+{$ifdef fpc}
+ {$mode delphi}
+{$endif}
+
+procedure Test;
+type
+ TRecord = record
+ private const
+ TestConst = 0;
+ end;
+begin
+end;
+
+begin
+end. \ No newline at end of file