2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2016-03-24 12:20:08 -05:00
|
|
|
|
2016-03-24 12:24:04 -05: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 16:53:36 -06:00
|
|
|
# NOTE(eddyb) this test only works with the `legacy` mangling,
|
|
|
|
# and will probably get removed once `legacy` is gone.
|
|
|
|
|
2016-03-24 12:20:08 -05:00
|
|
|
all:
|
2021-10-21 07:57:14 -05: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 12:24:04 -05:00
|
|
|
$(call RUN,b)
|
2021-10-21 07:57:14 -05:00
|
|
|
$(RUSTC) a.rs --cfg y -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
|
2016-03-24 12:24:04 -05:00
|
|
|
$(call FAIL,b)
|