about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass/shims/env/current_exe.rs
blob: 898a42b72d134819f25b46e0b80bda1ad6c42c88 (plain)
1
2
3
4
5
6
7
8
//@only-on-host: the Linux std implementation opens /proc/self/exe, which doesn't work cross-target
//@compile-flags: -Zmiri-disable-isolation
use std::env;

fn main() {
    // The actual value we get is a bit odd: we get the Miri binary that interprets us.
    env::current_exe().unwrap();
}