diff options
author | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-05-31 08:12:12 +0000 |
---|---|---|
committer | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-05-31 08:12:12 +0000 |
commit | 2714f5858c0824d9908b0bbc9aee00e47bd57b3b (patch) | |
tree | 65ffaa36c89ca6a0a85ffd43fd081f22bfbb2efa | |
parent | 5968bdf92f2f308feb8e1d2e0a664538e429d3c8 (diff) | |
download | fpc-2714f5858c0824d9908b0bbc9aee00e47bd57b3b.tar.gz |
* Adapted test to change to TExtRttiData
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/joost@24655 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r-- | classattributes/tests/test/tclassattribute9.pp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/classattributes/tests/test/tclassattribute9.pp b/classattributes/tests/test/tclassattribute9.pp index 93a046b81b..e3d7953cf4 100644 --- a/classattributes/tests/test/tclassattribute9.pp +++ b/classattributes/tests/test/tclassattribute9.pp @@ -7,6 +7,7 @@ uses type { tmyt } + // TCustomAttribute without constructor tmyt = class(TCustomAttribute); type @@ -15,15 +16,15 @@ type end; var - td: PTypeData; + rtd: PExtRTTIData; AClassAttribute: TCustomAttribute; begin - td := GetTypeData(TMyObject.ClassInfo); - if td^.AttributeCount<>1 then + rtd := GetExtRTTIData(TMyObject.ClassInfo); + if rtd^.AttributeData^.AttributeCount<>1 then halt(1); - AClassAttribute := GetClassAttribute(td,0) as TCustomAttribute; + AClassAttribute := GetClassAttribute(rtd,0) as TCustomAttribute; if AClassAttribute = nil then halt(2); writeln('ok'); |