rust/tests/ui/macros/issue-86082-option-env-invalid-char.rs

11 lines
192 B
Rust
Raw Normal View History

//@ check-pass
2021-06-09 08:44:06 +00:00
//
// Regression test for issue #86082
//
// Checks that option_env! does not panic on receiving an invalid
// environment variable name.
fn main() {
option_env!("\0=");
}