summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/link-cfg/no-deps.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make-fulldeps/link-cfg/no-deps.rs')
-rw-r--r--tests/run-make-fulldeps/link-cfg/no-deps.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/run-make-fulldeps/link-cfg/no-deps.rs b/tests/run-make-fulldeps/link-cfg/no-deps.rs
deleted file mode 100644
index ba5a8711a..000000000
--- a/tests/run-make-fulldeps/link-cfg/no-deps.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-#![feature(link_cfg)]
-
-#[link(name = "return1", cfg(foo))]
-#[link(name = "return2", cfg(bar))]
-extern "C" {
- fn my_function() -> i32;
-}
-
-fn main() {
- unsafe {
- let v = my_function();
- if cfg!(foo) {
- assert_eq!(v, 1);
- } else if cfg!(bar) {
- assert_eq!(v, 2);
- } else {
- panic!("unknown");
- }
- }
-}