2017-11-01 15:16:36 -05:00
|
|
|
# Test that allocator-related symbols don't show up as exported from a cdylib as
|
|
|
|
# they're internal to Rust and not part of the public ABI.
|
|
|
|
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2017-11-01 15:16:36 -05:00
|
|
|
|
2019-01-06 15:27:57 -06:00
|
|
|
# ignore-windows
|
2017-11-28 09:38:04 -06:00
|
|
|
# FIXME: The __rdl_ and __rust_ symbol still remains, no matter using MSVC or GNU
|
|
|
|
# See https://github.com/rust-lang/rust/pull/46207#issuecomment-347561753
|
2019-01-06 15:27:57 -06:00
|
|
|
|
2017-11-01 15:16:36 -05:00
|
|
|
all:
|
|
|
|
$(RUSTC) foo.rs
|
2017-11-23 09:19:50 -06:00
|
|
|
nm -g "$(call DYLIB,foo)" | $(CGREP) -v __rdl_ __rde_ __rg_ __rust_
|