about summary refs log tree commit diff
path: root/src/test/ui/thinlto/weak-works.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/thinlto/weak-works.rs')
-rw-r--r--src/test/ui/thinlto/weak-works.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/test/ui/thinlto/weak-works.rs b/src/test/ui/thinlto/weak-works.rs
deleted file mode 100644
index 163a3870248..00000000000
--- a/src/test/ui/thinlto/weak-works.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-// run-pass
-
-// compile-flags: -C codegen-units=8 -Z thinlto
-// ignore-windows
-
-#![feature(linkage)]
-
-pub mod foo {
-    #[linkage = "weak"]
-    #[no_mangle]
-    pub extern "C" fn FOO() -> i32 {
-        0
-    }
-}
-
-mod bar {
-    extern "C" {
-        fn FOO() -> i32;
-    }
-
-    pub fn bar() -> i32 {
-        unsafe { FOO() }
-    }
-}
-
-fn main() {
-    bar::bar();
-}