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 44// EMIT_MIR_FOR_EACH_BIT_WIDTH
55// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
66
7+ // This test is to check ICE in issue [#115789](https://github.com/rust-lang/rust/issues/115789).
8+
79struct A {
810 foo : Box < [ bool ] > ,
911}
@@ -14,13 +16,14 @@ struct A {
1416// CHECK-LABEL: fn main(
1517fn main ( ) {
1618 // ConstProp will create a constant of type `Box<[bool]>`.
19+ // FIXME: it is not yet a constant.
20+
1721 // Verify that `DataflowConstProp` does not ICE trying to dereference it directly.
1822
1923 // CHECK: debug a => [[a:_.*]];
2024 // We may check other inlined functions as well...
2125
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]>`
2528 let a: A = A { foo : Box :: default ( ) } ;
2629}
You can’t perform that action at this time.
0 commit comments