Add test to prevent regression
This commit is contained in:
parent
f2c0f29248
commit
d26e01e9df
1 changed files with 10 additions and 0 deletions
10
src/test/ui/macros/issue-86082-option-env-invalid-char.rs
Normal file
10
src/test/ui/macros/issue-86082-option-env-invalid-char.rs
Normal file
|
@ -0,0 +1,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=");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue