mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 21:11:23 +02:00
* GetEnumNameCount also counted the unit name after r14511 (mantis #16402)
git-svn-id: trunk@15225 -
This commit is contained in:
parent
c60bcf8699
commit
700aa3cf11
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -10355,6 +10355,7 @@ tests/webtbs/tw16328.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1634.pp svneol=native#text/plain
|
||||
tests/webtbs/tw16366.pp svneol=native#text/plain
|
||||
tests/webtbs/tw16377.pp svneol=native#text/plain
|
||||
tests/webtbs/tw16402.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1658.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1677.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1681.pp svneol=native#text/plain
|
||||
|
@ -478,8 +478,8 @@ begin
|
||||
PS:=PShortString(pointer(PS)+PByte(PS)^+1);
|
||||
Inc(Count);
|
||||
end;
|
||||
|
||||
Result := Count;
|
||||
{ the last string is the unit name }
|
||||
Result := Count - 1;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
7
tests/webtbs/tw16402.pp
Normal file
7
tests/webtbs/tw16402.pp
Normal file
@ -0,0 +1,7 @@
|
||||
uses typinfo;
|
||||
type
|
||||
TEnum = (Name1,Name2,Name3);
|
||||
begin
|
||||
if GetEnumNameCount(TypeInfo(TEnum))<>3 then
|
||||
halt(1);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user