]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-86082-option-env-invalid-char.rs
Rollup merge of #107127 - uweigand:s390x-sanitizer, r=Mark-Simulacrum
[rust.git] / tests / ui / macros / issue-86082-option-env-invalid-char.rs
1 // check-pass
2 //
3 // Regression test for issue #86082
4 //
5 // Checks that option_env! does not panic on receiving an invalid
6 // environment variable name.
7
8 fn main() {
9     option_env!("\0=");
10 }