mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-09 02:06:00 +02:00
+ new test
git-svn-id: trunk@7138 -
This commit is contained in:
parent
013277dd01
commit
5f18807044
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -8150,6 +8150,7 @@ tests/webtbs/tw8371.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw8391.pp svneol=native#text/plain
|
tests/webtbs/tw8391.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw8434.pp svneol=native#text/plain
|
tests/webtbs/tw8434.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw8462.pp svneol=native#text/plain
|
tests/webtbs/tw8462.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/tw8465.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw8513.pp svneol=native#text/plain
|
tests/webtbs/tw8513.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw8525.pp svneol=native#text/plain
|
tests/webtbs/tw8525.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw8573.pp svneol=native#text/plain
|
tests/webtbs/tw8573.pp svneol=native#text/plain
|
||||||
|
20
tests/webtbs/tw8465.pp
Normal file
20
tests/webtbs/tw8465.pp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
program EnumPtrConvTest;
|
||||||
|
|
||||||
|
{$APPTYPE CONSOLE}
|
||||||
|
|
||||||
|
{$IFDEF FPC}
|
||||||
|
{$MODE DELPHI}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
type
|
||||||
|
TEnum = (a, b);
|
||||||
|
|
||||||
|
var
|
||||||
|
e: TEnum;
|
||||||
|
p: Pointer;
|
||||||
|
|
||||||
|
begin
|
||||||
|
e := b;
|
||||||
|
p := Pointer(e);
|
||||||
|
WriteLn(Integer(p)); // produces "1" in Delphi
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user