diff options
| author | DianQK <dianqk@dianqk.net> | 2024-02-20 22:07:09 +0800 |
|---|---|---|
| committer | DianQK <dianqk@dianqk.net> | 2024-04-08 19:00:53 +0800 |
| commit | 1f061f47e2903e90651f63368e3ff0aebac8e3e6 (patch) | |
| tree | 00a114a3807f3f2779355a01529ce9e8c7e8a75a /tests/codegen | |
| parent | 7af74584533fddfc80b6c29394e5b8a088be68bc (diff) | |
| download | rust-1f061f47e2903e90651f63368e3ff0aebac8e3e6.tar.gz rust-1f061f47e2903e90651f63368e3ff0aebac8e3e6.zip | |
Transforms match into an assignment statement
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/match-optimized.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/match-optimized.rs b/tests/codegen/match-optimized.rs index 09907edf8f2..5cecafb9f29 100644 --- a/tests/codegen/match-optimized.rs +++ b/tests/codegen/match-optimized.rs @@ -26,12 +26,12 @@ pub fn exhaustive_match(e: E) -> u8 { // CHECK-NEXT: store i8 1, ptr %_0, align 1 // CHECK-NEXT: br label %[[EXIT]] // CHECK: [[C]]: -// CHECK-NEXT: store i8 2, ptr %_0, align 1 +// CHECK-NEXT: store i8 3, ptr %_0, align 1 // CHECK-NEXT: br label %[[EXIT]] match e { E::A => 0, E::B => 1, - E::C => 2, + E::C => 3, } } |
