diff options
| author | Ralf Jung <post@ralfj.de> | 2025-02-16 17:56:22 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-02-16 18:37:50 +0100 |
| commit | 4a4207a65073dcf1148c298d76e2fda11974284c (patch) | |
| tree | 43450d3b01049ca00c2b5bcf9f4c7d7dcd47a15a /tests/codegen/align-byval-vector.rs | |
| parent | 4229b80f506d5c1e6267f27e69f10fa3bd3c8f9e (diff) | |
| download | rust-4a4207a65073dcf1148c298d76e2fda11974284c.tar.gz rust-4a4207a65073dcf1148c298d76e2fda11974284c.zip | |
use add-core-stubs / minicore for a few more tests
Diffstat (limited to 'tests/codegen/align-byval-vector.rs')
| -rw-r--r-- | tests/codegen/align-byval-vector.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/codegen/align-byval-vector.rs b/tests/codegen/align-byval-vector.rs index 60d49f93081..c33b41a7bbe 100644 --- a/tests/codegen/align-byval-vector.rs +++ b/tests/codegen/align-byval-vector.rs @@ -1,3 +1,4 @@ +//@ add-core-stubs //@ revisions:x86-linux x86-darwin //@[x86-linux] compile-flags: --target i686-unknown-linux-gnu @@ -7,18 +8,14 @@ // Tests that aggregates containing vector types get their alignment increased to 16 on Darwin. -#![feature(no_core, lang_items, repr_simd, simd_ffi)] +#![feature(no_core, repr_simd, simd_ffi)] #![crate_type = "lib"] #![no_std] #![no_core] #![allow(non_camel_case_types)] -#[lang = "sized"] -trait Sized {} -#[lang = "freeze"] -trait Freeze {} -#[lang = "copy"] -trait Copy {} +extern crate minicore; +use minicore::*; #[repr(simd)] pub struct i32x4([i32; 4]); |
