diff options
| author | Tim Neumann <timnn@google.com> | 2025-07-01 09:17:29 +0200 |
|---|---|---|
| committer | Tim Neumann <timnn@google.com> | 2025-07-01 09:17:29 +0200 |
| commit | 7ca9f9363dbb42a845ea70dfb449253f08c83ce1 (patch) | |
| tree | 96367947c54d0b109b8887484bc216035985c902 | |
| parent | 6988a8fea774a2a20ebebddb7dbf15dd6ef594f9 (diff) | |
| download | rust-7ca9f9363dbb42a845ea70dfb449253f08c83ce1.tar.gz rust-7ca9f9363dbb42a845ea70dfb449253f08c83ce1.zip | |
tests/codegen/enum/enum-match.rs: accept negative range attribute
| -rw-r--r-- | tests/codegen/enum/enum-match.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/enum/enum-match.rs b/tests/codegen/enum/enum-match.rs index 6da6ad1f078..98635008d06 100644 --- a/tests/codegen/enum/enum-match.rs +++ b/tests/codegen/enum/enum-match.rs @@ -98,7 +98,7 @@ pub enum Enum2 { E, } -// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match2(i8{{.+}}%0) +// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, -?[0-9]+\))?}} i8 @match2(i8{{.+}}%0) // CHECK-NEXT: start: // CHECK-NEXT: %[[REL_VAR:.+]] = add i8 %0, 2 // CHECK-NEXT: %[[REL_VAR_WIDE:.+]] = zext i8 %[[REL_VAR]] to i64 |
