]>
git.proxmox.com Git - rustc.git/blob - src/test/run-make/stable-symbol-names/Makefile
3 # This test case makes sure that monomorphizations of the same function with the
4 # same set of generic arguments will have the same symbol names when
5 # instantiated in different crates.
7 dump-symbols
= nm
"$(TMPDIR)/lib$(1).rlib" \
8 | grep
"some_test_function" \
9 | sed
"s/^[0-9a-f]\{8,16\}/00000000/" \
14 $(RUSTC
) stable-symbol-names1.rs
15 $(RUSTC
) stable-symbol-names2.rs
16 $(call dump-symbols
,stable_symbol_names1
)
17 $(call dump-symbols
,stable_symbol_names2
)
18 cmp
"$(TMPDIR)/stable_symbol_names1.nm" "$(TMPDIR)/stable_symbol_names2.nm"