about summary refs log tree commit diff
path: root/tests/ui/macros/issue-86082-option-env-invalid-char.rs
blob: 5d24ad2dcad9f72eccd2171de35101cf7b30565d (plain)
1
2
3
4
5
6
7
8
9
10
//@ 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=");
}