summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-86082-option-env-invalid-char.rs
blob: b556b24d6aa6a3d67a503c54a447d7fd976021d2 (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=");
}