Skip to content

Commit

Permalink
tests/ui: 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 a8b34f5 commit 0bbe07e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/ui/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.
//!
//! 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 {}

0 comments on commit 0bbe07e

Please sign in to comment.