about summary refs log tree commit diff
path: root/tests/mir-opt/dataflow-const-prop/transmute.invalid_bool.DataflowConstProp.64bit.diff
blob: a66d8dbe84431671c547701a1938303bc79e7dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- // MIR for `invalid_bool` before DataflowConstProp
+ // MIR for `invalid_bool` after DataflowConstProp
  
  fn invalid_bool() -> bool {
      let mut _0: bool;
  
      bb0: {
-         _0 = const -1_i8 as bool (Transmute);
+         _0 = const {transmute(0xff): bool};
          return;
      }
  }