Skip to content

Commit

Permalink
Add 51388
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Dec 17, 2020
1 parent d380552 commit 9076d17
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ices/51388.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

cat > bar.rs << 'EOF'
pub fn hello_world()
{
println!("hello world");
}
EOF

cat > foo.rs << 'EOF'
extern crate bar;
pub fn foo()
{
bar::hello_world();
}
EOF

rustc --crate-type rlib --emit metadata bar.rs
rustc --crate-type rlib --emit llvm-bc bar.rs
rustc --crate-type rlib --emit llvm-bc foo.rs -L .

0 comments on commit 9076d17

Please sign in to comment.