Skip to content

Commit ec78176

Browse files
committed
tests/ui: add minicore compiletest self-test
1 parent 11b3766 commit ec78176

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//! Basic smoke test for `minicore` test auxiliary.
2+
//!
3+
//! This test is duplicated between ui/codegen/assembly because they have different runtest
4+
//! codepaths.
5+
6+
//@ add-core-stubs
7+
//@ check-pass
8+
//@ compile-flags: --target=x86_64-unknown-linux-gnu
9+
//@ needs-llvm-components: x86
10+
11+
#![crate_type = "lib"]
12+
#![feature(no_core)]
13+
#![no_std]
14+
#![no_core]
15+
16+
extern crate minicore;
17+
use minicore::*;
18+
19+
struct Meow;
20+
impl Copy for Meow {}

0 commit comments

Comments
 (0)