Skip to content

Commit 343ef6a

Browse files
committed
FileCheck reify_fn_ptr.
1 parent 6baec3c commit 343ef6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
// skip-filecheck
21
// unit-test: ConstProp
32
// EMIT_MIR reify_fn_ptr.main.ConstProp.diff
43

54
fn main() {
5+
// 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);
69
let _ = main as usize as *const fn();
710
}

0 commit comments

Comments
 (0)