Skip to content

Commit 22953b3

Browse files
committed
convert simple-dylib to ui test
1 parent f2e1a3a commit 22953b3

File tree

6 files changed

+16
-13
lines changed

6 files changed

+16
-13
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ run-make/share-generics-dylib/Makefile
235235
run-make/short-ice/Makefile
236236
run-make/silly-file-names/Makefile
237237
run-make/simd-ffi/Makefile
238-
run-make/simple-dylib/Makefile
239238
run-make/split-debuginfo/Makefile
240239
run-make/stable-symbol-names/Makefile
241240
run-make/static-dylib-by-default/Makefile

tests/run-make/simple-dylib/Makefile

-6
This file was deleted.

tests/run-make/simple-dylib/bar.rs

-1
This file was deleted.

tests/run-make/simple-dylib/foo.rs

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//@ compile-flags --crate-type=dylib -Cprefer-dynamic
2+
3+
#![crate_type = "dylib"]
4+
pub fn bar() {}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// A simple test, where foo.rs has a dependency
2+
// on the dynamic library simple-dylib.rs. If the test passes,
3+
// dylibs can be built and linked into another file successfully..
4+
5+
//@ aux-crate: simple-dylib.rs
6+
//@ run-pass
7+
8+
extern crate bar;
9+
10+
fn main() {
11+
bar::bar();
12+
}

0 commit comments

Comments
 (0)