-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move pattern desugar tests to test_mono
- Loading branch information
Showing
5 changed files
with
79 additions
and
48 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
15 changes: 15 additions & 0 deletions
15
crates/compiler/test_mono/generated/multiline_record_pattern.txt
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 @@ | ||
procedure Num.19 (#Attr.2, #Attr.3): | ||
let Num.292 : I64 = lowlevel NumAdd #Attr.2 #Attr.3; | ||
ret Num.292; | ||
|
||
procedure Test.0 (): | ||
let Test.7 : I64 = 1i64; | ||
let Test.8 : I64 = 2i64; | ||
let Test.9 : I64 = 3i64; | ||
let Test.1 : {I64, I64, I64} = Struct {Test.7, Test.8, Test.9}; | ||
let Test.2 : I64 = StructAtIndex 0 Test.1; | ||
let Test.3 : I64 = StructAtIndex 1 Test.1; | ||
let Test.4 : I64 = StructAtIndex 2 Test.1; | ||
let Test.6 : I64 = CallByName Num.19 Test.2 Test.3; | ||
let Test.5 : I64 = CallByName Num.19 Test.6 Test.4; | ||
ret Test.5; |
23 changes: 23 additions & 0 deletions
23
crates/compiler/test_mono/generated/nested_optional_field_with_binary_op.txt
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,23 @@ | ||
procedure Num.19 (#Attr.2, #Attr.3): | ||
let Num.291 : I64 = lowlevel NumAdd #Attr.2 #Attr.3; | ||
ret Num.291; | ||
|
||
procedure Test.0 (): | ||
let Test.17 : {} = Struct {}; | ||
let Test.15 : List {} = Array [Test.17]; | ||
let Test.16 : Str = "foo"; | ||
let Test.14 : {List {}, Str} = Struct {Test.15, Test.16}; | ||
let Test.10 : List {} = StructAtIndex 0 Test.14; | ||
dec Test.16; | ||
let Test.11 : U64 = lowlevel ListLen Test.10; | ||
dec Test.10; | ||
let Test.12 : U64 = 1i64; | ||
let Test.13 : Int1 = lowlevel Eq Test.11 Test.12; | ||
if Test.13 then | ||
let Test.5 : I64 = 1i64; | ||
let Test.6 : I64 = 1i64; | ||
let Test.2 : I64 = CallByName Num.19 Test.5 Test.6; | ||
ret Test.2; | ||
else | ||
let Test.7 : I64 = 0i64; | ||
ret Test.7; |
10 changes: 10 additions & 0 deletions
10
crates/compiler/test_mono/generated/optional_field_with_binary_op.txt
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 @@ | ||
procedure Num.19 (#Attr.2, #Attr.3): | ||
let Num.291 : I64 = lowlevel NumAdd #Attr.2 #Attr.3; | ||
ret Num.291; | ||
|
||
procedure Test.0 (): | ||
let Test.5 : {} = Struct {}; | ||
let Test.3 : I64 = 1i64; | ||
let Test.4 : I64 = 1i64; | ||
let Test.1 : I64 = CallByName Num.19 Test.3 Test.4; | ||
ret Test.1; |
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