about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/mir-opt/issue-41110.rs5
-rw-r--r--src/test/mir-opt/match_false_edges.rs8
2 files changed, 8 insertions, 5 deletions
diff --git a/src/test/mir-opt/issue-41110.rs b/src/test/mir-opt/issue-41110.rs
index de789e07d9f..bfac6c739a3 100644
--- a/src/test/mir-opt/issue-41110.rs
+++ b/src/test/mir-opt/issue-41110.rs
@@ -14,10 +14,9 @@ fn main() {
     let x = S.other(S.id());
 }
 
-// no_mangle and extern C to make sure this gets instantiated even in an
-// executable.
+// no_mangle to make sure this gets instantiated even in an executable.
 #[no_mangle]
-pub extern "C" fn test() {
+pub fn test() {
     let u = S;
     let mut v = S;
     drop(v);
diff --git a/src/test/mir-opt/match_false_edges.rs b/src/test/mir-opt/match_false_edges.rs
index 78214dab539..56c5dd3be47 100644
--- a/src/test/mir-opt/match_false_edges.rs
+++ b/src/test/mir-opt/match_false_edges.rs
@@ -18,7 +18,9 @@ fn guard2(_:i32) -> bool {
     true
 }
 
-fn full_tested_match() {
+// no_mangle to make sure this gets instantiated even in an executable.
+#[no_mangle]
+pub fn full_tested_match() {
     let _ = match Some(42) {
         Some(x) if guard() => (1, x),
         Some(y) => (2, y),
@@ -26,7 +28,9 @@ fn full_tested_match() {
     };
 }
 
-fn full_tested_match2() {
+// no_mangle to make sure this gets instantiated even in an executable.
+#[no_mangle]
+pub fn full_tested_match2() {
     let _ = match Some(42) {
         Some(x) if guard() => (1, x),
         None => (3, 3),