-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Compiler tests] Added C932 for #1647
- Loading branch information
cpyrgas
committed
Dec 5, 2024
1 parent
9d80f87
commit 735f2f2
Showing
2 changed files
with
132 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,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 |
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