File tree 3 files changed +15
-9
lines changed
tests/run-make/static-unwinding
3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,6 @@ run-make/stable-symbol-names/Makefile
263
263
run-make/static-dylib-by-default/Makefile
264
264
run-make/static-extern-type/Makefile
265
265
run-make/static-pie/Makefile
266
- run-make/static-unwinding/Makefile
267
266
run-make/staticlib-blank-lib/Makefile
268
267
run-make/staticlib-dylib-linkage/Makefile
269
268
run-make/std-core-cycle/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // During unwinding, an implementation of Drop is possible to clean up resources.
2
+ // This test implements drop in both a main function and its static library.
3
+ // If the test succeeds, a Rust program being a static library does not affect Drop implementations.
4
+ // See https://github.com/rust-lang/rust/issues/10434
5
+
6
+ //@ ignore-cross-compile
7
+ //@ needs-unwind
8
+
9
+ use run_make_support:: { run, rustc} ;
10
+
11
+ fn main ( ) {
12
+ rustc ( ) . input ( "lib.rs" ) . run ( ) ;
13
+ rustc ( ) . input ( "main.rs" ) . run ( ) ;
14
+ run ( "main" ) ;
15
+ }
You can’t perform that action at this time.
0 commit comments