Skip to content

Commit 9076d17

Browse files
committed
Add 51388
Issue: rust-lang/rust#51388
1 parent d380552 commit 9076d17

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ices/51388.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
cat > bar.rs << 'EOF'
4+
pub fn hello_world()
5+
{
6+
println!("hello world");
7+
}
8+
EOF
9+
10+
cat > foo.rs << 'EOF'
11+
extern crate bar;
12+
13+
pub fn foo()
14+
{
15+
bar::hello_world();
16+
}
17+
EOF
18+
19+
rustc --crate-type rlib --emit metadata bar.rs
20+
rustc --crate-type rlib --emit llvm-bc bar.rs
21+
rustc --crate-type rlib --emit llvm-bc foo.rs -L .

0 commit comments

Comments
 (0)