From d28e6600559f58b5579d34c30dc634029c1fe3c0 Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Tue, 29 Oct 2024 12:51:14 +0100 Subject: [PATCH] tests: fix broken test cases. --- .../ir/tests/testdata/2.no-folding.ir | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/src/compiler/ir/tests/testdata/2.no-folding.ir b/lib/src/compiler/ir/tests/testdata/2.no-folding.ir index 90b6a3ca..ff75bd5d 100644 --- a/lib/src/compiler/ir/tests/testdata/2.no-folding.ir +++ b/lib/src/compiler/ir/tests/testdata/2.no-folding.ir @@ -12,34 +12,34 @@ RULE test AND LE FIELD_ACCESS - IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 12 }) } + IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 17 }) } IDENT Symbol { type_value: integer(unknown), kind: Field(0, false) } PATTERN_OFFSET PatternIdx(0) INDEX - IDENT Symbol { type_value: integer(unknown), kind: Var(Var { ty: integer, index: 0 }) } + IDENT Symbol { type_value: integer(unknown), kind: Var(Var { ty: integer, index: 5 }) } LE PATTERN_OFFSET PatternIdx(0) INDEX - IDENT Symbol { type_value: integer(unknown), kind: Var(Var { ty: integer, index: 0 }) } + IDENT Symbol { type_value: integer(unknown), kind: Var(Var { ty: integer, index: 5 }) } ADD FIELD_ACCESS - IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 12 }) } + IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 17 }) } IDENT Symbol { type_value: integer(unknown), kind: Field(0, false) } FIELD_ACCESS - IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 12 }) } + IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 17 }) } IDENT Symbol { type_value: integer(unknown), kind: Field(1, false) } LE FIELD_ACCESS - IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 12 }) } + IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 17 }) } IDENT Symbol { type_value: integer(unknown), kind: Field(0, false) } PATTERN_OFFSET PatternIdx(1) INDEX - IDENT Symbol { type_value: integer(unknown), kind: Var(Var { ty: integer, index: 6 }) } + IDENT Symbol { type_value: integer(unknown), kind: Var(Var { ty: integer, index: 11 }) } LE PATTERN_OFFSET PatternIdx(1) INDEX - IDENT Symbol { type_value: integer(unknown), kind: Var(Var { ty: integer, index: 6 }) } + IDENT Symbol { type_value: integer(unknown), kind: Var(Var { ty: integer, index: 11 }) } ADD FIELD_ACCESS - IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 12 }) } + IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 17 }) } IDENT Symbol { type_value: integer(unknown), kind: Field(0, false) } FIELD_ACCESS - IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 12 }) } + IDENT Symbol { type_value: struct, kind: Var(Var { ty: struct, index: 17 }) } IDENT Symbol { type_value: integer(unknown), kind: Field(1, false) }