convert simple-dylib to ui test
This commit is contained in:
parent
f2e1a3a80a
commit
22953b3f52
@ -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
|
||||
|
@ -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)
|
@ -1 +0,0 @@
|
||||
pub fn bar() {}
|
@ -1,5 +0,0 @@
|
||||
extern crate bar;
|
||||
|
||||
fn main() {
|
||||
bar::bar();
|
||||
}
|
4
tests/ui/imports/auxiliary/simple-dylib.rs
Normal file
4
tests/ui/imports/auxiliary/simple-dylib.rs
Normal file
@ -0,0 +1,4 @@
|
||||
//@ compile-flags --crate-type=dylib -Cprefer-dynamic
|
||||
|
||||
#![crate_type = "dylib"]
|
||||
pub fn bar() {}
|
12
tests/ui/imports/simple-dylib-import.rs
Normal file
12
tests/ui/imports/simple-dylib-import.rs
Normal 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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user