Skip to content

Commit

Permalink
tests/codegen: add minicore compiletest self-test
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Oct 31, 2024
1 parent b115a22 commit a8b34f5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/codegen/compiletest-self-test/minicore-smoke-test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//! Basic smoke test for `minicore` test auxiliary.
//@ add-core-stubs
//@ 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 {}

// CHECK-LABEL: meow
#[no_mangle]
fn meow() {}

0 comments on commit a8b34f5

Please sign in to comment.