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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
191 B
Rust
Raw Normal View History

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