File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
tests/run-make/static-extern-type Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,6 @@ run-make/simd-ffi/Makefile
108108run-make/split-debuginfo/Makefile
109109run-make/stable-symbol-names/Makefile
110110run-make/static-dylib-by-default/Makefile
111- run-make/static-extern-type/Makefile
112111run-make/staticlib-blank-lib/Makefile
113112run-make/staticlib-dylib-linkage/Makefile
114113run-make/symbol-mangling-hashed/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // Static variables coming from a C library through foreign function interface (FFI) are unsized
2+ // at compile time - and assuming they are sized used to cause an internal compiler error (ICE).
3+ // After this was fixed in #58192, this test checks that external statics can be safely used in
4+ // a program that both compiles and executes successfully.
5+ // See https://github.com/rust-lang/rust/issues/57876
6+
7+ //@ ignore-cross-compile
8+ // Reason: the compiled binary is executed
9+
10+ use run_make_support:: { build_native_static_lib, run, rustc} ;
11+
12+ fn main ( ) {
13+ build_native_static_lib ( "define-foo" ) ;
14+ rustc ( ) . arg ( "-ldefine-foo" ) . input ( "use-foo.rs" ) . run ( ) ;
15+ run ( "use-foo" ) ;
16+ }
You can’t perform that action at this time.
0 commit comments