FileCheck reify_fn_ptr.
This commit is contained in:
parent
6baec3ccc2
commit
343ef6a9cb
@ -1,7 +1,10 @@
|
|||||||
// skip-filecheck
|
|
||||||
// unit-test: ConstProp
|
// unit-test: ConstProp
|
||||||
// EMIT_MIR reify_fn_ptr.main.ConstProp.diff
|
// EMIT_MIR reify_fn_ptr.main.ConstProp.diff
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
// CHECK-LABEL: fn main(
|
||||||
|
// CHECK: [[ptr:_.*]] = main as fn() (PointerCoercion(ReifyFnPointer));
|
||||||
|
// CHECK: [[addr:_.*]] = move [[ptr]] as usize (PointerExposeAddress);
|
||||||
|
// CHECK: [[back:_.*]] = move [[addr]] as *const fn() (PointerFromExposedAddress);
|
||||||
let _ = main as usize as *const fn();
|
let _ = main as usize as *const fn();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user