-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wanderlan.anjos
committed
Sep 3, 2010
1 parent
045865a
commit cb758a6
Showing
14 changed files
with
212 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
unit Test01; | ||
|
||
interface | ||
|
||
implementation | ||
|
||
uses | ||
Classes; | ||
|
||
procedure PrTest01; | ||
var | ||
A: TStrings; | ||
begin | ||
with A as TStringList do | ||
begin | ||
end; | ||
end; | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
unit Test02; | ||
|
||
interface | ||
|
||
uses | ||
Messages; | ||
|
||
type | ||
TTest02 = class | ||
public | ||
procedure WMEraseBkgnd(var Message: TWMEraseBkgnd); message WM_ERASEBKGND; | ||
end; | ||
|
||
implementation | ||
|
||
{ TFoo } | ||
|
||
procedure TTest02.WMEraseBkgnd(var Message: TWMEraseBkgnd); | ||
begin | ||
end; | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
unit Test03; | ||
|
||
interface | ||
|
||
type | ||
(*$IFDEF mswindowsx *) | ||
erro=dd; | ||
(*$ELSE *) | ||
erro=integer; | ||
(*$ENDIF *) | ||
|
||
implementation | ||
|
||
end. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
unit Test04; | ||
|
||
interface | ||
|
||
{$ifndef ver110} | ||
|
||
{$ifndef ver90} | ||
{$ifndef ver100} | ||
{$define UseInt64} | ||
{$endif} | ||
{$endif} | ||
|
||
|
||
{$ifdef UseInt64} | ||
type TInt64 = Int64; | ||
{$else} | ||
type TInt64 = Comp; | ||
{$endif} | ||
|
||
{$else} | ||
|
||
type TInt64 = TLargeInteger; | ||
|
||
{$endif} | ||
|
||
implementation | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
unit Test05; | ||
|
||
interface | ||
|
||
function FnTest05: Integer; | ||
|
||
implementation | ||
|
||
function FnTest05; | ||
begin | ||
Result := 0; | ||
end; | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
program Test06; | ||
var | ||
S : string; | ||
begin | ||
S := '''ABC''abcd''asas'; | ||
S := #13#10''''; | ||
S := #39'ABC'#39; | ||
S := #39+'ABC'#39; | ||
S := #39'ABC'+#39; | ||
S := 'A'#13#10'B'#13#10'C'; | ||
S := 'A'#$A'B'; | ||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
unit Test07; | ||
|
||
interface | ||
|
||
procedure FnTest07; stdcall; external 'test07.dll'; | ||
|
||
implementation | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
unit Test08; | ||
|
||
interface | ||
|
||
type | ||
tyTest08 = (ttA, ttB, ttC); | ||
var | ||
vaTest08: set of Ord(ttA)..Ord(ttC); | ||
|
||
implementation | ||
|
||
end. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
unit Test09; | ||
|
||
interface | ||
|
||
implementation | ||
|
||
procedure PrTeste09; | ||
label lbSaida; | ||
begin | ||
goto lbSaida; | ||
lbSaida: | ||
end; | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
unit Test10; | ||
|
||
interface | ||
|
||
implementation | ||
|
||
procedure PrTest10A(a: string = ''); | ||
begin | ||
|
||
end; | ||
|
||
procedure PrTest10B; | ||
begin | ||
PrTest10A('', ); //seems like a delphi parser bug | ||
end; | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
unit Test11; | ||
|
||
interface | ||
|
||
type | ||
tyTest11 = ( ttTest11A = 1, ttTest11B = 2 ); | ||
|
||
implementation | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
unit Test12; | ||
|
||
interface | ||
|
||
implementation | ||
|
||
procedure PrTest12; | ||
var | ||
lArray: array[0..1] of Integer; | ||
begin | ||
lArray[$] := 0; // bug compilador delphi? | ||
end; | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
unit Test13; | ||
|
||
interface | ||
|
||
threadvar | ||
tvTest13: Integer; | ||
|
||
implementation | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
unit Test14; | ||
|
||
interface | ||
|
||
type | ||
TTest14 = class | ||
private | ||
FTest14: Integer; | ||
public | ||
property Tst14: Integer index -1 read FTest14 write FTest14; | ||
end; | ||
|
||
implementation | ||
|
||
end. |