File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
tests/mir-opt/dataflow-const-prop Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4
4
// EMIT_MIR_FOR_EACH_BIT_WIDTH
5
5
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
6
6
7
+ // This test is to check ICE in issue [#115789](https://github.com/rust-lang/rust/issues/115789).
8
+
7
9
struct A {
8
10
foo : Box < [ bool ] > ,
9
11
}
@@ -14,13 +16,14 @@ struct A {
14
16
// CHECK-LABEL: fn main(
15
17
fn main ( ) {
16
18
// ConstProp will create a constant of type `Box<[bool]>`.
19
+ // FIXME: it is not yet a constant.
20
+
17
21
// Verify that `DataflowConstProp` does not ICE trying to dereference it directly.
18
22
19
23
// CHECK: debug a => [[a:_.*]];
20
24
// We may check other inlined functions as well...
21
25
22
- // CHECK: [[box_obj:_.*]] = Box::<[bool]>(_3, const std::alloc::Global);
23
- // CHECK: [[a]] = A { foo: move [[box_obj]] };
24
- // FIXME: we do not have `const Box::<[bool]>` after constprop right now.
26
+ // CHECK-LABEL: _.* = Box::<[bool]>(
27
+ // FIXME: should be `_.* = const Box::<[bool]>`
25
28
let a: A = A { foo : Box :: default ( ) } ;
26
29
}
You can’t perform that action at this time.
0 commit comments