()
| 848 | |
| 849 | #[test] |
| 850 | fn test_temp_scope_first_no_locals() -> Result<()> { |
| 851 | let upcalls = HashMap::default(); |
| 852 | let mut global = GlobalSymtable::new(upcalls); |
| 853 | let mut local = global.enter_scope(); |
| 854 | { |
| 855 | let temp = local.frozen(); |
| 856 | let mut scope = temp.temp_scope(); |
| 857 | assert_eq!(Register::local(0).unwrap(), scope.first()?); |
| 858 | } |
| 859 | Ok(()) |
| 860 | } |
| 861 | |
| 862 | #[test] |
| 863 | fn test_temp_scope_first_with_outer_allocation() -> Result<()> { |
nothing calls this directly
no test coverage detected