Adapt rmake-test to new naming scheme for internal symbols.
This commit is contained in:
parent
e46c1ad9c9
commit
992203b976
|
@ -1,7 +1,7 @@
|
||||||
-include ../tools.mk
|
-include ../tools.mk
|
||||||
|
|
||||||
# check that the compile generated symbols for strings, binaries,
|
# check that the compile generated symbols for strings, binaries,
|
||||||
# vtables, etc. have semisane names (e.g. `str1234`); it's relatively
|
# vtables, etc. have semisane names (e.g. `str.1234`); it's relatively
|
||||||
# easy to accidentally modify the compiler internals to make them
|
# easy to accidentally modify the compiler internals to make them
|
||||||
# become things like `str"str"(1234)`.
|
# become things like `str"str"(1234)`.
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@ OUT=$(TMPDIR)/lib.s
|
||||||
all:
|
all:
|
||||||
$(RUSTC) lib.rs --emit=asm --crate-type=staticlib
|
$(RUSTC) lib.rs --emit=asm --crate-type=staticlib
|
||||||
# just check for symbol declarations with the names we're expecting.
|
# just check for symbol declarations with the names we're expecting.
|
||||||
grep 'str[0-9][0-9]*:' $(OUT)
|
grep 'str.[0-9][0-9]*:' $(OUT)
|
||||||
grep 'byte_str[0-9][0-9]*:' $(OUT)
|
grep 'byte_str.[0-9][0-9]*:' $(OUT)
|
||||||
grep 'vtable[0-9][0-9]*' $(OUT)
|
grep 'vtable.[0-9][0-9]*' $(OUT)
|
||||||
|
|
Loading…
Reference in New Issue