]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/x86_64-no-macosx-deployment-target.rs
Auto merge of #69986 - JohnTitor:rollup-h0809mf, r=JohnTitor
[rust.git] / src / test / codegen / x86_64-no-macosx-deployment-target.rs
1 //
2 // Checks that we leave the target alone when MACOSX_DEPLOYMENT_TARGET is unset.
3 // See issue #60235.
4
5 // compile-flags: -O --target=x86_64-apple-darwin --crate-type=rlib
6 // unset-rustc-env:MACOSX_DEPLOYMENT_TARGET
7 #![feature(no_core, lang_items)]
8 #![no_core]
9
10 #[lang="sized"]
11 trait Sized { }
12 #[lang="freeze"]
13 trait Freeze { }
14 #[lang="copy"]
15 trait Copy { }
16
17 #[repr(C)]
18 pub struct Bool {
19     b: bool,
20 }
21
22 // CHECK: target triple = "x86_64-apple-macosx10.7.0"
23 #[no_mangle]
24 pub extern "C" fn structbool() -> Bool {
25     Bool { b: true }
26 }