Skip to content

Commit 8cf20ba

Browse files
committed
tests/codegen: add minicore compiletest self-test
1 parent 43d7e65 commit 8cf20ba

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+
//@ add-core-stubs
4+
//@ compile-flags: --target=x86_64-unknown-linux-gnu
5+
//@ needs-llvm-components: x86
6+
7+
#![crate_type = "lib"]
8+
#![feature(no_core)]
9+
#![no_std]
10+
#![no_core]
11+
12+
extern crate minicore;
13+
use minicore::*;
14+
15+
struct Meow;
16+
impl Copy for Meow {}
17+
18+
// CHECK-LABEL: meow
19+
#[no_mangle]
20+
fn meow() {}

0 commit comments

Comments
 (0)