Support single file tests

This commit is contained in:
nora 2023-04-04 14:17:51 +02:00
parent c9198c0111
commit 45c0581fa9
3 changed files with 24 additions and 13 deletions

View file

@ -0,0 +1,13 @@
use std::collections::HashMap;
/// ~REQUIRE-DELETED user-fn
fn user(mut map: HashMap<(), ()>) {
map.insert((), ());
}
/// ~MINIMIZE-ROOT main
fn main() {
let map = HashMap::new();
user(map);
"~REQUIRE-DELETED main-body";
}