2019-04-29 16:57:29 -04:00
|
|
|
//
|
|
|
|
// Checks that we leave the target alone MACOSX_DEPLOYMENT_TARGET is unset.
|
|
|
|
// See issue #60235.
|
|
|
|
|
|
|
|
//@ compile-flags: -O --target=i686-apple-darwin --crate-type=rlib
|
2021-06-13 21:19:39 +03:00
|
|
|
//@ needs-llvm-components: x86
|
2019-04-29 16:57:29 -04:00
|
|
|
//@ unset-rustc-env:MACOSX_DEPLOYMENT_TARGET
|
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
#![no_core]
|
|
|
|
|
2024-05-29 14:11:20 +10:00
|
|
|
#[lang = "sized"]
|
|
|
|
trait Sized {}
|
|
|
|
#[lang = "freeze"]
|
|
|
|
trait Freeze {}
|
|
|
|
#[lang = "copy"]
|
|
|
|
trait Copy {}
|
2019-04-29 16:57:29 -04:00
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
pub struct Bool {
|
|
|
|
b: bool,
|
|
|
|
}
|
|
|
|
|
2022-11-13 16:58:18 -06:00
|
|
|
// CHECK: target triple = "i686-apple-macosx10.12.0"
|
2019-04-29 16:57:29 -04:00
|
|
|
#[no_mangle]
|
|
|
|
pub extern "C" fn structbool() -> Bool {
|
|
|
|
Bool { b: true }
|
|
|
|
}
|