diff options
Diffstat (limited to 'tests/ui/exec-env.rs')
-rw-r--r-- | tests/ui/exec-env.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/exec-env.rs b/tests/ui/exec-env.rs new file mode 100644 index 000000000..d7f15bcae --- /dev/null +++ b/tests/ui/exec-env.rs @@ -0,0 +1,10 @@ +// run-pass +// exec-env:TEST_EXEC_ENV=22 +// ignore-emscripten FIXME: issue #31622 +// ignore-sgx unsupported + +use std::env; + +pub fn main() { + assert_eq!(env::var("TEST_EXEC_ENV"), Ok("22".to_string())); +} |