Skip to content

Commit 7ca9f93

Browse files
committed
tests/codegen/enum/enum-match.rs: accept negative range attribute
1 parent 6988a8f commit 7ca9f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/codegen/enum/enum-match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub enum Enum2 {
9898
E,
9999
}
100100

101-
// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match2(i8{{.+}}%0)
101+
// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, -?[0-9]+\))?}} i8 @match2(i8{{.+}}%0)
102102
// CHECK-NEXT: start:
103103
// CHECK-NEXT: %[[REL_VAR:.+]] = add i8 %0, 2
104104
// CHECK-NEXT: %[[REL_VAR_WIDE:.+]] = zext i8 %[[REL_VAR]] to i64

0 commit comments

Comments
 (0)