Thanks to visit codestin.com Credit goes to github.com
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 6baec3c commit 343ef6aCopy full SHA for 343ef6a
tests/mir-opt/const_prop/reify_fn_ptr.rs
@@ -1,7 +1,10 @@
1
-// skip-filecheck
2
// unit-test: ConstProp
3
// EMIT_MIR reify_fn_ptr.main.ConstProp.diff
4
5
fn main() {
+ // CHECK-LABEL: fn main(
6
+ // CHECK: [[ptr:_.*]] = main as fn() (PointerCoercion(ReifyFnPointer));
7
+ // CHECK: [[addr:_.*]] = move [[ptr]] as usize (PointerExposeAddress);
8
+ // CHECK: [[back:_.*]] = move [[addr]] as *const fn() (PointerFromExposedAddress);
9
let _ = main as usize as *const fn();
10
}
0 commit comments