Add test for --extern alloc=librustc.rlib
This commit is contained in:
parent
41e051dfcc
commit
f9e4f0f494
|
@ -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() {}
|
|
@ -0,0 +1 @@
|
|||
pub fn foo() {}
|
Loading…
Reference in New Issue