mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
10 lines
275 B
Rust
10 lines
275 B
Rust
|
// Check that aux builds can also use rustc-env, but environment is configured
|
||
|
// separately from the main test case.
|
||
|
//
|
||
|
// rustc-env:COMPILETEST_BAR=bar
|
||
|
|
||
|
pub fn test() {
|
||
|
assert_eq!(option_env!("COMPILETEST_FOO"), None);
|
||
|
assert_eq!(env!("COMPILETEST_BAR"), "bar");
|
||
|
}
|