We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e7770e commit d3f704aCopy full SHA for d3f704a
src/test/codegen/match.rs
@@ -20,9 +20,13 @@ pub enum E {
20
// CHECK-LABEL: @exhaustive_match
21
#[no_mangle]
22
pub fn exhaustive_match(e: E) {
23
-// CHECK: switch{{.*}}, label %[[DEFAULT:[a-zA-Z0-9_]+]]
24
-// CHECK: [[DEFAULT]]:
25
-// CHECK-NEXT: unreachable
+// CHECK: switch{{.*}}, label %[[OTHERWISE:[a-zA-Z0-9_]+]] [
+// CHECK-NEXT: i8 [[DISCR:[0-9]+]], label %[[TRUE:[a-zA-Z0-9_]+]]
+// CHECK-NEXT: ]
26
+// CHECK: [[TRUE]]:
27
+// CHECK-NEXT: br label %[[EXIT:[a-zA-Z0-9_]+]]
28
+// CHECK: [[OTHERWISE]]:
29
30
match e {
31
E::A => (),
32
E::B => (),
0 commit comments