Skip to content

Commit d223ba6

Browse files
committed
Document test.
1 parent 9aec5c5 commit d223ba6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/ui/mir/static_fnptr.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//! Verify that we correctly handle fn pointer provenance in MIR optimizations.
2+
//! By asking to inline `static_fnptr::bar`, we have two copies of `static_fnptr::foo`, one in the
3+
//! auxiliary crate and one in the local crate CGU.
4+
//! `baz` must only consider the versions from upstream crate, and not try to compare with the
5+
//! address of the CGU-local copy.
6+
//! Related issue: #123670
7+
18
//@ run-pass
29
//@ compile-flags:-Cno-prepopulate-passes -Copt-level=0
310
//@ aux-build:static_fnptr.rs

0 commit comments

Comments
 (0)