-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/ui: add
minicore
compiletest self-test
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//! Basic smoke test for `minicore` test auxiliary. | ||
//! | ||
//! This test is duplicated between ui/codegen/assembly because they have different runtest | ||
//! codepaths. | ||
|
||
//@ add-core-stubs | ||
//@ check-pass | ||
//@ compile-flags: --target=x86_64-unknown-linux-gnu | ||
//@ needs-llvm-components: x86 | ||
|
||
#![crate_type = "lib"] | ||
#![feature(no_core)] | ||
#![no_std] | ||
#![no_core] | ||
|
||
extern crate minicore; | ||
use minicore::*; | ||
|
||
struct Meow; | ||
impl Copy for Meow {} |