dead_code_tests: add skip multiple inherits test

This commit is contained in:
Markus Napierkowski 2023-04-18 13:40:23 +02:00
parent 254c90dd6a
commit 3ec64fb49e

View File

@ -310,6 +310,17 @@ in alive
assert_eq!(results[0].binding.name.to_string(), "dead2");
}
#[test]
fn skip_multiple_inherits() {
let results = run("
let
# deadnix: skip
inherit dead1 dead2;
in alive
");
assert_eq!(0, results.len());
}
#[test]
fn shadowed_by_skip() {
let nix = "