diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-12-02 21:00:59 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-12-02 21:00:59 +0000 |
| commit | 343ef6a9cb8425e394643b735a9a4ef361067fe2 (patch) | |
| tree | 0a1c38b1cd17cd2234a91b34e27c5ae37c64e691 | |
| parent | 6baec3ccc27a719e12e5e5ad67995c0cd86f60e6 (diff) | |
| download | rust-343ef6a9cb8425e394643b735a9a4ef361067fe2.tar.gz rust-343ef6a9cb8425e394643b735a9a4ef361067fe2.zip | |
FileCheck reify_fn_ptr.
| -rw-r--r-- | tests/mir-opt/const_prop/reify_fn_ptr.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/mir-opt/const_prop/reify_fn_ptr.rs b/tests/mir-opt/const_prop/reify_fn_ptr.rs index da7de80c5f4..33fdd4142c1 100644 --- a/tests/mir-opt/const_prop/reify_fn_ptr.rs +++ b/tests/mir-opt/const_prop/reify_fn_ptr.rs @@ -1,7 +1,10 @@ -// skip-filecheck // unit-test: ConstProp // EMIT_MIR reify_fn_ptr.main.ConstProp.diff 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(); } |
