This repository was archived by the owner on May 28, 2025. It is now read-only.
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 @@ -48,7 +48,6 @@ run-make/libtest-junit/Makefile
48
48
run-make/libtest-thread-limit/Makefile
49
49
run-make/link-cfg/Makefile
50
50
run-make/link-framework/Makefile
51
- run-make/linkage-attr-on-static/Makefile
52
51
run-make/long-linker-command-lines-cmd-exe/Makefile
53
52
run-make/long-linker-command-lines/Makefile
54
53
run-make/lto-linkage-used-attr/Makefile
@@ -76,7 +75,6 @@ run-make/redundant-libs/Makefile
76
75
run-make/remap-path-prefix-dwarf/Makefile
77
76
run-make/reproducible-build-2/Makefile
78
77
run-make/reproducible-build/Makefile
79
- run-make/return-non-c-like-enum-from-c/Makefile
80
78
run-make/rlib-format-packed-bundled-libs-2/Makefile
81
79
run-make/rlib-format-packed-bundled-libs-3/Makefile
82
80
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