]> git.proxmox.com Git - rustc.git/blob - src/test/run-make/stable-symbol-names/Makefile
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / run-make / stable-symbol-names / Makefile
1 -include ../tools.mk
2
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.
6
7 dump-symbols = nm "$(TMPDIR)/lib$(1).rlib" \
8 | grep "some_test_function" \
9 | sed "s/^[0-9a-f]\{8,16\}/00000000/" \
10 | sort \
11 > "$(TMPDIR)/$(1).nm"
12
13 all:
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"