summaryrefslogtreecommitdiffstats
path: root/tests/ui/unique/unique-ffi-symbols.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unique/unique-ffi-symbols.rs')
-rw-r--r--tests/ui/unique/unique-ffi-symbols.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/ui/unique/unique-ffi-symbols.rs b/tests/ui/unique/unique-ffi-symbols.rs
deleted file mode 100644
index 77b5ead26..000000000
--- a/tests/ui/unique/unique-ffi-symbols.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-// run-pass
-// We used to have a __rust_abi shim that resulted in duplicated symbols
-// whenever the item path wasn't enough to disambiguate between them.
-fn main() {
- let a = {
- extern "C" fn good() -> i32 { return 0; }
- good as extern "C" fn() -> i32
- };
- let b = {
- extern "C" fn good() -> i32 { return 5; }
- good as extern "C" fn() -> i32
- };
-
- assert!(a != b);
- assert_eq!((a(), b()), (0, 5));
-}