fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
428 B12 linesraw
1# Test that allocator-related symbols don't show up as exported from a cdylib as
2# they're internal to Rust and not part of the public ABI.
3
4-include ../tools.mk
5
6# ignore-windows
7# FIXME: The __rdl_ and __rust_ symbol still remains, no matter using MSVC or GNU
8# See https://github.com/rust-lang/rust/pull/46207#issuecomment-347561753
9
10all:
11	$(RUSTC) foo.rs
12	nm -g "$(call DYLIB,foo)" | $(CGREP) -v __rdl_ __rde_ __rg_ __rust_