File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed
pass-non-c-like-enum-to-c Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ run-make/libtest-thread-limit/Makefile
67
67
run-make/link-cfg/Makefile
68
68
run-make/link-framework/Makefile
69
69
run-make/link-path-order/Makefile
70
- run-make/linkage-attr-on-static/Makefile
71
70
run-make/long-linker-command-lines-cmd-exe/Makefile
72
71
run-make/long-linker-command-lines/Makefile
73
72
run-make/longjmp-across-rust/Makefile
@@ -105,7 +104,6 @@ run-make/redundant-libs/Makefile
105
104
run-make/remap-path-prefix-dwarf/Makefile
106
105
run-make/reproducible-build-2/Makefile
107
106
run-make/reproducible-build/Makefile
108
- run-make/return-non-c-like-enum-from-c/Makefile
109
107
run-make/rlib-format-packed-bundled-libs-2/Makefile
110
108
run-make/rlib-format-packed-bundled-libs-3/Makefile
111
109
run-make/rlib-format-packed-bundled-libs/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // #[linkage] is a useful attribute which can be applied to statics to allow
2
+ // external linkage, something which was not possible before #18890. This test
3
+ // checks that using this new feature results in successful compilation and execution.
4
+ // See https://github.com/rust-lang/rust/pull/18890
5
+
6
+ //@ ignore-cross-compile
7
+ // Reason: the compiled binary is executed
8
+
9
+ use run_make_support:: { build_native_static_lib, run, rustc} ;
10
+
11
+ fn main ( ) {
12
+ build_native_static_lib ( "foo" ) ;
13
+ rustc ( ) . input ( "bar.rs" ) . run ( ) ;
14
+ run ( "bar" ) ;
15
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments