2023-03-30 13:46:31 +00:00
|
|
|
# ignore-cross-compile
|
2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2016-03-24 17:20:08 +00:00
|
|
|
|
2016-03-24 17:24:04 +00:00
|
|
|
# Test that if we build `b` against a version of `a` that has one set
|
|
|
|
# of types, it will not run with a dylib that has a different set of
|
|
|
|
# types.
|
|
|
|
|
2019-01-29 22:53:36 +00:00
|
|
|
# NOTE(eddyb) this test only works with the `legacy` mangling,
|
|
|
|
# and will probably get removed once `legacy` is gone.
|
|
|
|
|
2016-03-24 17:20:08 +00:00
|
|
|
all:
|
2021-10-21 12:57:14 +00:00
|
|
|
$(RUSTC) a.rs --cfg x -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
|
|
|
|
$(RUSTC) b.rs -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
|
2016-03-24 17:24:04 +00:00
|
|
|
$(call RUN,b)
|
2021-10-21 12:57:14 +00:00
|
|
|
$(RUSTC) a.rs --cfg y -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
|
2016-03-24 17:24:04 +00:00
|
|
|
$(call FAIL,b)
|