Skip to content

Commit

Permalink
[Compiler tests] Added C932 for #1647
Browse files Browse the repository at this point in the history
  • Loading branch information
cpyrgas committed Dec 5, 2024
1 parent 9d80f87 commit 735f2f2
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/CompilerTests/Applications/C932/Prg/C932.prg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// 932. Compiler crash with default values
// https://github.com/X-Sharp/XSharpPublic/issues/1647

// All of the function definitions below cause an ICE (in non-core dialects) instead of a proper error message:

FUNCTION TestFunc1( a AS INT, b := 85, c AS INT) AS VOID STRICT
FUNCTION TestFunc2( a AS INT, b := 85, c := 1 AS INT) AS VOID STRICT
FUNCTION TestFunc3( b := 85, c AS INT) AS VOID STRICT
FUNCTION TestFunc4( b := 85, c := 1 AS INT) AS VOID STRICT
123 changes: 123 additions & 0 deletions src/CompilerTests/xSharp Tests.viproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ DefaultPropertiesGuid = 25819EAF-9863-441B-90D0-A9072599943A
RecentReference = Browse:E:\XSharp\Dev\src\CompilerTests\Runtime\XSharp.Core.dll
RecentReference = Browse:E:\XSharp\Dev\src\CompilerTests\Runtime\XSharp.RT.dll
RecentReference = Browse:E:\XSharp\Dev\src\CompilerTests\Runtime\XSharp.VFP.dll
RecentReference = GAC:XSharp.Core,v4,2.6.0.0
RecentReference = GAC:XSharp.RT,v4,2.6.0.0

[Application Groups]
ApplicationGroup = BUGS,E440B545-3C18-4457-A54F-4F3256349ABE,723E53EA-0D2C-4FC9-B86E-F050D29A49D2
Expand Down Expand Up @@ -136352,6 +136354,127 @@ AppConfig = Release,22222222-2222-2222-2222-222222222222
ForceX86=0
Optimize=0
ENDApplication = C931 - Problem with the <> operator

ApplicationGroup = B9CFE839-D401-428D-94E9-E9D21E9F772D
; ************** APPLICATION C932 - Compiler crash with default values *************
Application = C932 - Compiler crash with default values
IDEVersion = 1.06
GalleryName =
GalleryPage =
GalleryDefaultName =
Target = 0
Platform = AnyCPU
Language = XSharp
Runtime = CLR4
Dialect = VO
Folder = %ProjectPath%\Applications\C932\
PrgSubFolder = \Prg
ResourcesSubFolder =
Description =
NameSpace =
Assembly = C932
Extension =
ApplicationIcon =
OutputFolder =
Frameworks = 1
GUID = BF9F859C-EB6C-45CC-9F2D-9CBF03913353
IncludeInProjectBuild = 1
IncludeInProjectSearch = 1
IncludeInProjectExport = 1
IncludePath =
StdDefsFile =
AppToRun =
SignAssembly = 0
KeyFile =

[ExportOptions]
ExportResources = 0
ExportImages = 0
[C932 - Compiler crash with default values FileGroups]
[C932 - Compiler crash with default values Files]
File = %AppPath%\Prg\C932.prg
FileGUID = 034FE0DB-A7B0-4EF8-A8CE-ECEEDE7A56D2
FileType = Code
CopyToBin = 0
[C932 - Compiler crash with default values References]
ReferenceGAC = CLR4,System,1,0,4.0.0.0
ReferenceGAC = CLR4,System.Core,1,0,4.0.0.0
ReferenceGAC = CLR4,XSharp.Core,1,0,2.6.0.0
ReferenceGAC = CLR4,XSharp.RT,1,0,2.6.0.0
[C932 - Compiler crash with default values Resources]
[C932 - Compiler crash with default values Native Resources]
[C932 - Compiler crash with default values License files]
[C932 - Compiler crash with default values General Options]
Switches=
ZeroArrays=0
CaseSensitive=0
ImplicitNamespace=0
VO1=0
VO2=0
VO3=0
VO4=0
VO5=0
VO6=0
VO7=0
VO8=0
VO9=0
VO10=0
VO11=0
VO12=0
VO13=0
VO14=0
VO15=0
VO16=0
VO17=0
FOX1=0
FOX2=0
XPP1=0
LateBound=0
Unsafe=0
Undeclared=0
EnforceSelf=0
EnforceOverride=0
UseNativeVersion=0
MemVar=0
IgnoreStdDefs=0
Ovf=0
FOvf=0
ModernSyntax=0
NamedArgs=0
InitLocals=0
AllowOldStyleAssignments=0
AllowDotOption=0
ResponseOnly=0
[C932 - Compiler crash with default values Configurations]
AppConfig = Debug,11111111-1111-1111-1111-111111111111
Switches=
SwitchesCF=
CommandLine=
CommandLineCF=
Debug=1
DebugInit=1
DefineDebug=1
DefineTrace=0
SyntaxOnly=0
WarningsErrors=0
ForceConsole=0
ForceX86=0
Optimize=0
AppConfig = Release,22222222-2222-2222-2222-222222222222
Switches=
SwitchesCF=
CommandLine=
CommandLineCF=
Debug=0
DebugInit=0
DefineDebug=0
DefineTrace=0
SyntaxOnly=0
WarningsErrors=0
ForceConsole=0
ForceX86=0
Optimize=0
ENDApplication = C932 - Compiler crash with default values
[EndApplications]

[Configurations]
Expand Down

0 comments on commit 735f2f2

Please sign in to comment.