mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 21:07:58 +02:00
8 lines
121 B
ObjectPascal
8 lines
121 B
ObjectPascal
uses typinfo;
|
|
type
|
|
TEnum = (Name1,Name2,Name3);
|
|
begin
|
|
if GetEnumNameCount(TypeInfo(TEnum))<>3 then
|
|
halt(1);
|
|
end.
|