Skip to content

Commit

Permalink
[EXAMPLE] just include!()
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Oct 12, 2024
1 parent 171d20b commit 90b6aae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/ui/abi/compatibility.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ check-pass
//@ use-minicore
//@ compile-flags: -Cpanic=abort
//@ revisions: i686
//@[i686] compile-flags: --target i686-unknown-linux-gnu
//@[i686] needs-llvm-components: x86
Expand Down Expand Up @@ -69,8 +69,11 @@
// sparc64: https://github.com/rust-lang/rust/issues/115336
// mips64: https://github.com/rust-lang/rust/issues/115404

extern crate minicore;
use minicore::*;
#[rustc_builtin_macro]
macro_rules! include {
($file:expr $(,)?) => {{ /* compiler built-in */ }};
}
include!("../../auxiliary/minicore.rs");

/// To work cross-target this test must be no_core. This little prelude supplies what we need.
///
Expand Down

0 comments on commit 90b6aae

Please sign in to comment.