Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use llir;
use std::path::Path;

#[test]
fn fn_ptr_1_block_name() -> Result<(), String> {
  let path = Path::new("tests/c_files/fn_ptr/fn_ptr_1.bc");
  let context = llir::Context::create();
  let module = context.load_module(path)?;
  for func in module.iter_functions() {
    for block in func.iter_blocks() {
      println!("{}", block.name());
    }
  }
  Ok(())
}