Skip to content

Commit 48a8d23

Browse files
Update run-make tests.
1 parent 7d774c4 commit 48a8d23

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

src/test/run-make/issue-7349/foo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ fn outer<T>() {
1313
fn inner() -> u32 {
1414
8675309
1515
}
16+
inner();
1617
}
1718

1819
extern "C" fn outer_foreign<T>() {
1920
#[allow(dead_code)]
2021
fn inner() -> u32 {
2122
11235813
2223
}
24+
inner();
2325
}
2426

2527
fn main() {

src/test/run-make/sepcomp-separate/foo.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
12+
1113
fn magic_fn() -> usize {
1214
1234
1315
}
@@ -24,4 +26,8 @@ mod b {
2426
}
2527
}
2628

27-
fn main() { }
29+
fn main() {
30+
magic_fn();
31+
a::magic_fn();
32+
b::magic_fn();
33+
}

src/test/run-make/symbols-are-reasonable/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ pub static Y: &'static [u8] = include_bytes!("lib.rs");
1414
trait Foo { fn dummy(&self) { } }
1515
impl Foo for usize {}
1616

17-
pub fn dummy() {
17+
#[no_mangle]
18+
pub extern "C" fn dummy() {
1819
// force the vtable to be created
1920
let _x = &1usize as &Foo;
2021
}

src/test/run-make/symbols-include-type-name/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ impl Def {
1717
Def { id: id }
1818
}
1919
}
20+
21+
#[no_mangle]
22+
pub fn user() {
23+
let _ = Def::new(0);
24+
}

0 commit comments

Comments
 (0)