diff options
author | paul <paul@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-01-17 09:05:59 +0000 |
---|---|---|
committer | paul <paul@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-01-17 09:05:59 +0000 |
commit | 49cf7196e1f91521eb69d305975be37e07857b86 (patch) | |
tree | a17faf9ff5858634a8d8176643409301b0d9ed15 /tests/test/terecs13c.pp | |
parent | a50f17accf7ac543d2689aeb47a05c4ed2b94dae (diff) | |
download | fpc-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/terecs13c.pp')
-rw-r--r-- | tests/test/terecs13c.pp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test/terecs13c.pp b/tests/test/terecs13c.pp new file mode 100644 index 0000000000..53f36cfe6c --- /dev/null +++ b/tests/test/terecs13c.pp @@ -0,0 +1,16 @@ +{ %FAIL } +{ %NORUN } +program terecs13c; + +{$ifdef fpc} + {$mode delphi} +{$endif} + +var + R: record + class var + TestField: Integer; + end; + +begin +end. |