File: multiple-crates-and-no_link.rs

package info (click to toggle)
rustc 1.88.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 934,128 kB
  • sloc: xml: 158,127; python: 36,062; javascript: 19,855; sh: 19,700; cpp: 18,947; ansic: 12,993; asm: 4,792; makefile: 690; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (17 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Regression test for #13560. Previously, it was possible to
//! trigger an assert in crate numbering if a series of crates
//! being loaded included a "syntax-only" extern crate.
//! But it appears we don't mess with crate numbering for
//! `#[no_link]` crates anymore, so this test doesn't seem
//! to test anything now.

//@ run-pass
//@ needs-crate-type: dylib
//@ aux-build:empty-crate-1.rs
//@ aux-build:empty-crate-2.rs
//@ aux-build:no_link-crate.rs

extern crate empty_crate_2 as t2;
extern crate no_link_crate as t3;

fn main() {}