3 # Test that separate compilation actually puts code into separate compilation
4 # units. `foo.rs` defines `magic_fn` in three different modules, which should
5 # wind up in three different compilation units.
8 $(RUSTC) foo.rs --emit=llvm-ir -C codegen-units=3
9 [ "$$(cat "$(TMPDIR)"/foo.*.ll | grep -c define\ .*magic_fn)" -eq "3" ]