2025-02-24 09:26:54 +00:00
|
|
|
//@ add-core-stubs
|
2023-10-27 11:19:24 +00:00
|
|
|
//@ build-fail
|
|
|
|
//@ compile-flags: --target i686-unknown-linux-gnu --crate-type lib
|
|
|
|
//@ needs-llvm-components: x86
|
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
#![allow(internal_features)]
|
|
|
|
#![no_std]
|
|
|
|
#![no_core]
|
|
|
|
|
2025-02-24 09:26:54 +00:00
|
|
|
extern crate minicore;
|
|
|
|
use minicore::*;
|
|
|
|
|
2023-10-27 11:19:24 +00:00
|
|
|
// 0x7fffffff is fine, but after rounding up it becomes too big
|
|
|
|
#[repr(C, align(2))]
|
|
|
|
pub struct Example([u8; 0x7fffffff]);
|
|
|
|
|
2024-09-20 07:39:10 +00:00
|
|
|
pub fn lib(_x: Example) {} //~ERROR: too big for the target architecture
|