]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/pass/shims/env/current_exe.rs
make env::current_exe work on Windows
[rust.git] / src / tools / miri / tests / pass / shims / env / current_exe.rs
1 //@only-on-host: the Linux std implementation opens /proc/self/exe, which doesn't work cross-target
2 //@compile-flags: -Zmiri-disable-isolation
3 use std::env;
4
5 fn main() {
6     // The actual value we get is a bit odd: we get the Miri binary that interprets us.
7     env::current_exe().unwrap();
8 }