Add test for --extern alloc=librustc.rlib
This commit is contained in:
parent
41e051dfcc
commit
f9e4f0f494
3 changed files with 7 additions and 0 deletions
|
@ -14,3 +14,6 @@ all:
|
|||
--extern bar=$(TMPDIR)/libbar.rlib \
|
||||
--extern bar=$(TMPDIR)/libbar-a.rlib
|
||||
$(RUSTC) foo.rs --extern bar=$(TMPDIR)/libbar.rlib
|
||||
# Try to be sneaky and load a private crate from with a non-private name.
|
||||
$(RUSTC) rustc.rs -Zforce-unstable-if-unmarked --crate-type=rlib
|
||||
$(RUSTC) gated_unstable.rs --extern alloc=$(TMPDIR)/librustc.rlib 2>&1 | $(CGREP) 'rustc_private'
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
extern crate alloc;
|
||||
|
||||
fn main() {}
|
1
src/test/run-make-fulldeps/extern-flag-fun/rustc.rs
Normal file
1
src/test/run-make-fulldeps/extern-flag-fun/rustc.rs
Normal file
|
@ -0,0 +1 @@
|
|||
pub fn foo() {}
|
Loading…
Add table
Add a link
Reference in a new issue