mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 13:49:30 +02:00
test for length(char) in const expr
This commit is contained in:
parent
da09fad8f9
commit
cb9c63b467
10
tests/ts010020.pp
Normal file
10
tests/ts010020.pp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ test for const string that is a char }
|
||||||
|
|
||||||
|
const
|
||||||
|
C ='D';
|
||||||
|
D = 'AD';
|
||||||
|
PP : string[length(D)] = D;
|
||||||
|
P : String[length(c)] = C;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user