aboutsummaryrefslogtreecommitdiff
path: root/cc/cc-test/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cc/cc-test/tests')
-rw-r--r--cc/cc-test/tests/all.rs58
1 files changed, 0 insertions, 58 deletions
diff --git a/cc/cc-test/tests/all.rs b/cc/cc-test/tests/all.rs
deleted file mode 100644
index a457c72..0000000
--- a/cc/cc-test/tests/all.rs
+++ /dev/null
@@ -1,58 +0,0 @@
-use cc_test::*;
-
-#[link(name = "OptLinkage", kind = "static")]
-extern "C" {
- fn answer() -> i32;
-}
-
-#[test]
-fn foo_here() {
- unsafe {
- assert_eq!(foo(), 4);
- }
-}
-
-#[test]
-fn bar_here() {
- unsafe {
- assert_eq!(bar1(), 5);
- assert_eq!(bar2(), 6);
- }
-}
-
-#[test]
-fn asm_here() {
- unsafe {
- assert_eq!(asm(), 7);
- }
-}
-
-#[test]
-fn baz_here() {
- unsafe {
- assert_eq!(baz(), 8);
- }
-}
-
-#[test]
-#[cfg(windows)]
-fn windows_here() {
- unsafe {
- windows();
- }
-}
-
-#[test]
-#[cfg(target_env = "msvc")]
-fn msvc_here() {
- unsafe {
- msvc();
- }
-}
-
-#[test]
-fn opt_linkage() {
- unsafe {
- assert_eq!(answer(), 42);
- }
-}