convert simple-dylib to ui test

This commit is contained in:
Oneirical 2024-05-28 10:58:01 -04:00
parent f2e1a3a80a
commit 22953b3f52
6 changed files with 16 additions and 13 deletions

View File

@ -235,7 +235,6 @@ run-make/share-generics-dylib/Makefile
run-make/short-ice/Makefile
run-make/silly-file-names/Makefile
run-make/simd-ffi/Makefile
run-make/simple-dylib/Makefile
run-make/split-debuginfo/Makefile
run-make/stable-symbol-names/Makefile
run-make/static-dylib-by-default/Makefile

View File

@ -1,6 +0,0 @@
# ignore-cross-compile
include ../tools.mk
all:
$(RUSTC) bar.rs --crate-type=dylib -C prefer-dynamic
$(RUSTC) foo.rs
$(call RUN,foo)

View File

@ -1 +0,0 @@
pub fn bar() {}

View File

@ -1,5 +0,0 @@
extern crate bar;
fn main() {
bar::bar();
}

View File

@ -0,0 +1,4 @@
//@ compile-flags --crate-type=dylib -Cprefer-dynamic
#![crate_type = "dylib"]
pub fn bar() {}

View File

@ -0,0 +1,12 @@
// A simple test, where foo.rs has a dependency
// on the dynamic library simple-dylib.rs. If the test passes,
// dylibs can be built and linked into another file successfully..
//@ aux-crate: simple-dylib.rs
//@ run-pass
extern crate bar;
fn main() {
bar::bar();
}