blob: 4d86a17b6f1fbab6d3669cbfb7d151925f12686f [file] [log] [blame]
// compile-pass
#![allow(stable_features)]
// ignore-cloudabi no processes
// ignore-emscripten no processes
#![feature(os)]
#[cfg(unix)]
fn main() {
use std::process::Command;
use std::env;
use std::os::unix::prelude::*;
use std::ffi::OsStr;
if env::args().len() == 1 {
assert!(Command::new(&env::current_exe().unwrap())
.arg(<OsStr as OsStrExt>::from_bytes(b"\xff"))
.status().unwrap().success())
}
}
#[cfg(windows)]
fn main() {}