]> git.proxmox.com Git - rustc.git/blame - src/test/codegen/x86_64-no-macosx-deployment-target.rs
Update unsuspicious file list
[rustc.git] / src / test / codegen / x86_64-no-macosx-deployment-target.rs
CommitLineData
48663c56
XL
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
136023e0 6// needs-llvm-components: x86
48663c56
XL
7// unset-rustc-env:MACOSX_DEPLOYMENT_TARGET
8#![feature(no_core, lang_items)]
9#![no_core]
10
11#[lang="sized"]
12trait Sized { }
13#[lang="freeze"]
14trait Freeze { }
15#[lang="copy"]
16trait Copy { }
17
18#[repr(C)]
19pub struct Bool {
20 b: bool,
21}
22
23// CHECK: target triple = "x86_64-apple-macosx10.7.0"
24#[no_mangle]
25pub extern "C" fn structbool() -> Bool {
26 Bool { b: true }
27}